First commit
This commit is contained in:
21
lesson2.py
Normal file
21
lesson2.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# Comparators
|
||||
|
||||
3 < 4
|
||||
5 >= 5
|
||||
10 == 10
|
||||
12 != 13
|
||||
|
||||
# Boolean operators
|
||||
|
||||
True or False
|
||||
(3 < 4) and (5 >= 5)
|
||||
this() and not that()
|
||||
|
||||
# Conditional statements
|
||||
|
||||
if this_might_be_true():
|
||||
print "This really is true."
|
||||
elif that_might_be_true():
|
||||
print "That is true."
|
||||
else:
|
||||
print "None of the above."
|
||||
Reference in New Issue
Block a user