Python Fundamentals Quiz

Test your knowledge on Python syntax, variables, lists, and loops.

Question 1 of 5 10 Points

What is the correct extension for Python source files?

Question 2 of 5 10 Points

What will be the output of this code snippet?

x = [1, 2, 3]
print(len(x))
Question 3 of 5 10 Points

Which keyword is used to define a function in Python?

Question 4 of 5 10 Points

Which data type is immutable in Python?

Question 5 of 5 10 Points

What is the result of 10 // 3 in Python?