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/12Score 0

What is the `self` parameter in Python class methods?

In this round
  1. What is the `self` parameter in Python class methods?
  2. What does `range(5)` produce?
  3. What does `__init__` do in a Python class?
  4. What is the difference between a list and a tuple in Python?
  5. What is list slicing in Python?
  6. How do you handle exceptions in Python?
  7. How do you create a set in Python?
  8. What is the output of `bool([])` in Python?
  9. How do you define a function in Python?
  10. What does `str.split()` do?
  11. What does `None` represent in Python?
  12. Which data structure uses key-value pairs in Python?
Gaps to close?
Read the curated Python notes — core concepts, patterns, interview prep.
Python notes

More quizzes

.NETAccessibilityAgile MethodologyAirflowAlertmanagerAlgorithms