Sunday, June 22, 2014

Day 78

Explored Python at CodeCademy. Worked on Python tutorial 10 of 15, Conditionals & Control Flow, Mix 'n' Match! Use boolean expressions as appropriate on the lines in the tutorial.

The code used:
# Make me false!
bool_one = (2 <= 2) and "Alpha" == "Bravo" # We did this one for you!
# Make me true!
bool_two = not 3**4 < 4**3
# Make me false!
bool_three = 19 % 4 != 300 / 10 / 10 and False
# Make me true!
bool_four = True and True
# Make me true!
bool_five = True or True

There was no interaction for this code:

No comments:

Post a Comment