Python Boolean Logic
Cai Gengyang
gengyangcai at gmail.com
Sat Sep 23 00:29:15 EDT 2017
Hey guys, I'm testing this on CodeAcademy, but I cant get the program to output a result even after pressing the run button. Just wanted to check if my logic is correct. Thanks alot
# Assign True or False as appropriate on the lines below!
# (20 - 10) > 15
bool_one = False # We did this one for you!
# (10 + 17) == 3**16
# Remember that ** can be read as 'to the power of'. 3**16 is about 43 million.
bool_two = False
# 1**2 <= -1
bool_three = False
# 40 * 4 >= -4
bool_four = True
# 100 != 10**2
bool_five = False
More information about the Python-list
mailing list