Skills101
← All practice quizzes

Quiz: Python Lists

5 questionsNo time limitPass: 60%+10 XP on first pass

The most-used Python collection. Add, insert and remove items with a picture, slice and sort lists, copy them safely, and solve common list programs.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    What does this print?

    a = [1, 2, 3]
    a.append([4, 5])
    print(len(a))
    
  2. Question 2

    What does print([5, 3, 9].sort()) print?

  3. Question 3

    What does this print?

    x = [1, 2]
    y = x
    y.append(3)
    print(x)
    
  4. Question 4

    What is [10, 20, 30, 40][1:3]?

  5. Question 5

    Which removes and RETURNS the item at index 2 of list L?