Python List Quiz

This Python list quiz covers the basics, from positive and negative indexes to changing items and checking membership. It is a quick way for beginners to confirm they read list code correctly.

Easy 10 questions ~5 minutes Pass at 80% Python 3.12

Choose a mode

Playing as a guest: sign in to keep your XP and streak.

Sample question

Question 1 of 10

What does this print?

nums = [10, 20, 30, 40]
print(nums[1])
Show the answer

B. 20 List indexes start at 0, so nums[1] is the second item. Indexing gives the item itself, not a one-item list.

What this quiz covers

  • Indexes that start at 0 and negative indexes
  • What len() counts in a nested list
  • Changing an item by index
  • in, + and * with lists
  • Reading items from a list of lists

Questions people ask

Do I need an account?

No. Anyone can play. Sign in to keep your XP, streak, badges and history.

Which Python version?

Python 3.12. Every question about output was checked by running the code.

Can I retake it?

Yes. Your best score is kept, and the questions and answers are shuffled each time.