WorksheetsPython Variable and Declaration 1
Total questions: 8
Worksheet time: 4mins
Declare and initiate student age variable with integer value of 13 years old using Python code.
student Age = int(13)
studentAge = int(13)
studentAge = float(13)
studentAge = (13)int
Declare and initiate student height variable with float value of 1.69 meter using Python code.
student Height = int(1.69)
studentHeight = float(1.69)
studentHeight = int(1.69)
studentHeight = (1.69)float
Declare and initiate student blood type variable with char value of “A”.
blood type = A
bloodType = "A"
bloodType = int("A")
blood Type = "A"
Declare and initiate student name variable with string value of “Ahmad”.
studentName = "Ahmad"
student Name = Ahmad
"student Name" = Ahmad
student Name = int(Ahmad)
Declare and initiate a Boolean variable variable with Boolean value of True.
BooleanVariable = True
Boolean Variable = True
Boolean Variable = int(True)
Boolean Variable = "(True)"
Declare and initiate a customer age variable with integer value of 22 years old using Python code.
customer Age = int(22)
customerAge = int(22)
customer Age = float(22)
customerAge = (22)int
Declare and initiate staff height variable with float value of 1.5 meter using Python code.
staff Height = int(1.5)
staffHeight = float(1.5)
staffHeight = int(1.5)
staffHeight = (1.5)float
Declare and initiate car name variable with string value of “Proton”.
carName = "Proton"
car Name = Proton
"car Name" = Proton
car Name = int(Proton)
