Python Quiz

21. Which function is used to display text in Python?
22. What is the output of: print(10 % 3)?
23. Which data type is used to store True or False values?
24. How do you start a for loop in Python?
25. Which of the following is a Python dictionary?
26. What does the 'break' keyword do in a loop?
27. What is the output of: print(3 * 'ab')?
28. Which keyword is used to define a class in Python?
29. How do you access the first element of a list `mylist = [10, 20, 30]`?
30. What is the correct way to start a function in Python?

Explore Programming Topics