Module 2: Variables and Data Types Quiz
Test your Python knowledge with this interactive 2-question quiz on Module 2: Variables and Data Types. Passing score: 70%. Get instant feedback and earn XP.
Questions
Question 1: Which of the following is a valid variable name according to Python PEP 8 conventions?
- 2nd_user
- user-name
- user_age
- class
Question 2: What is the output of type(3.14)?
- <class 'int'>
- <class 'float'>
- <class 'double'>
- <class 'str'>