Python Quiz

1 / 10

Which of the following is NOT a valid variable name in Python?

2 / 10

What is the purpose of the "if" statement in Python?

3 / 10

How do you comment out a single line in Python?

4 / 10

What does the "print()" function do in Python?

5 / 10

Which data type is used to store a sequence of characters in Python?

6 / 10

What is the purpose of the "len()" function in Python?

7 / 10

How do you declare a list in Python?

8 / 10

What is the difference between "==" and "is" in Python?

9 / 10

What does the term "PEP 8" refer to in the context of Python?

10 / 10

Which of the following is a mutable data type in Python?

Your score is

The average score is 60%

0%