Skip to content

Instantly share code, notes, and snippets.

@iamkingsleyf
Created November 17, 2014 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamkingsleyf/2c67b2dc2fa06b5abde1 to your computer and use it in GitHub Desktop.
Save iamkingsleyf/2c67b2dc2fa06b5abde1 to your computer and use it in GitHub Desktop.
# Create comparative statements as appropriate on the lines below!
# Make me true!
bool_one = 3 < 5 # We already did this one for you!
# Make me false!
bool_two = 3 > 5
# Make me true!
bool_three = 4+1 == 5
# Make me false!
bool_four = 4+1 > 5
# Make me true!
bool_five = 2+2 == 4
# 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
# Assign True or False as appropriate on the lines below!
# Set this to True if 17 < 328 or to False if it is not.
bool_one = True # We did this one for you!
# Set this to True if 100 == (2 * 50) or to False otherwise.
bool_two = True
# Set this to True if 19 <= 19 or to False if it is not.
bool_three = True
# Set this to True if -22 >= -18 or to False if it is not.
bool_four = True
# Set this to True if 99 != (98 + 1) or to False otherwise.
bool_five = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment