Question

    What does the ‘range(5)’ function in Python produce?

    A A list with values from 1 to 5 Correct Answer Incorrect Answer
    B A list with values from 0 to 4 Correct Answer Incorrect Answer
    C A list with values from 0 to 5 Correct Answer Incorrect Answer
    D A list with a single value, 5 Correct Answer Incorrect Answer

    Solution

    A list with values from 0 to 4

    Practice Next

    Relevant for Exams: