Skip to content

Commit

Permalink
tweak comparisons section
Browse files Browse the repository at this point in the history
  • Loading branch information
justmarkham committed Oct 13, 2016
1 parent 4a11664 commit efe0553
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,14 @@

### COMPARISONS AND BOOLEAN OPERATIONS ###

# assignment statement
x = 5

# comparisons (these return True)
5 > 3
5 >= 3
5 != 3
5 == 5
x > 3
x >= 3
x != 3
x == 5

# boolean operations (these return True)
5 > 3 and 6 > 3
Expand All @@ -117,9 +120,6 @@

### CONDITIONAL STATEMENTS ###

# assignment statement
x = 5

# if statement
if x > 0:
print('positive')
Expand Down

0 comments on commit efe0553

Please sign in to comment.