How do I calculate the data type of False
(notice the quotes around the word False!) and save it in a variable named q7
, then print it out in python.
q7 = "False"
print(type(q7))
q7 = False != False
print(q7)
q7 = str (5 % 2 == 0)
print(q7)
q7 = "False"
print(q7)
q7 = "Is 5 even? " + str(5 % 2 == 0)
print(q7)
q7 = str('str')
print(type(q7))