Skills101
← All practice quizzes

Quiz: Python Variables and Data Types

5 questionsNo time limitPass: 60%+10 XP on first pass

Variables are name tags for values. Learn Python's core data types, how to check a type, convert between types, and naming rules.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    What is the output?

    x = "5"
    y = 2
    print(x * y)
    
  2. Question 2

    Which is a valid variable name?

  3. Question 3

    What does int(7.9) return?

  4. Question 4

    What is type(10 / 2)?

  5. Question 5

    Which value is "falsy" in Python?