Variables Warm Up#
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?
_name
1player
player_name
birth year
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