Variables Warm Up#

Section Title: Variables Warm Up Questions

Warm Up Question-1#

Define a variable called quantity and assign it the value 25. Display its ID number and type.

Warm Up Question-2#

Which of the following cannot be used as a variable name, and why?

  1. _name

  2. 1player

  3. player_name

  4. birth year

  5. True

Warm Up Question-3#

Determine the output of the code below and provide an explanation.

x = 5
print(x)
x = 7
print(x)

Warm Up Question-4#

Use the provided variables and print() function to output the statement: Harry is 23 years old.

name, age = 'Harry', 23

Warm Up Question-5#

Use the given variables and string concatenation to display 35.

x, y = 3, 5