Question

    How do you comment a single-line in Python?

    A // This is a comment Correct Answer Incorrect Answer
    B # This is a comment Correct Answer Incorrect Answer
    C /* This is a comment */ Correct Answer Incorrect Answer
    D /- This is a comment -/ Correct Answer Incorrect Answer

    Solution

    # This is a comment

    Practice Next

    Relevant for Exams: