Multiple choice

Which of these is a variable?

  1. print()

  2. float()

  3. num1 = 9

  4. int()

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A variable is a named storage location for data. In 'num1 = 9', 'num1' is the variable name being assigned the value 9. The other options are function calls or type conversion functions.