Wednesday, June 18, 2014

Day 74

Explored Python at CodeCademy. Worked on Python tutorial 6 of 15, Conditionals & Control Flow, And! Learned about the boolean operator "and" and how it returns "True" when the expressions on either side of "and" are true.

The code used:
bool_one = False and False
bool_two = -(-(-(-2))) == -2 and 4 >= 16**0.5
bool_three = 19 % 4 != 300 / 10 / 10 and False
bool_four = -(1**2) < 2**0 and 10 % 10 <= 20 - 10 * 2
bool_five = True and True

There was no interaction for this code:

No comments:

Post a Comment