All quizzes
Free quiz · 49 questions in the bank

Python quiz

Test your Python knowledge with a free interactive quiz — 49 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What is the difference between a list and a tuple in Python?

Questions in this quiz
  1. What is the difference between a list and a tuple in Python?
  2. How do you create a list comprehension for squares of 1–5?
  3. What is list slicing in Python?
  4. What is a lambda function in Python?
  5. What is the `self` parameter in Python class methods?
  6. What is PEP 8?
  7. What is a Python module?
  8. How do you define a function in Python?
  9. What does `len()` do?
  10. What does `*args` allow in a Python function?
  11. What does `range(5)` produce?
  12. What does `__init__` do in a Python class?
Gaps to close?
Read the curated Python notes — core concepts, patterns, interview prep.
Python notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web