Skip to content

Commit efe0553

Browse files
committed
tweak comparisons section
1 parent 4a11664 commit efe0553

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

reference.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,14 @@
101101

102102
### COMPARISONS AND BOOLEAN OPERATIONS ###
103103

104+
# assignment statement
105+
x = 5
106+
104107
# comparisons (these return True)
105-
5 > 3
106-
5 >= 3
107-
5 != 3
108-
5 == 5
108+
x > 3
109+
x >= 3
110+
x != 3
111+
x == 5
109112

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

118121
### CONDITIONAL STATEMENTS ###
119122

120-
# assignment statement
121-
x = 5
122-
123123
# if statement
124124
if x > 0:
125125
print('positive')

0 commit comments

Comments
 (0)