Skip to content

Commit 797a3d5

Browse files
committed
added example for python booleans
1 parent 3990786 commit 797a3d5

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

basic_examples/python_booleans.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
print "Python has 10 type of booleans", True, " and ", False
2+
print "They are normally the result of comparisons"
3+
4+
num = 8
5+
if num < 10:
6+
print num, " is less than 10"
7+
else:
8+
print num, " is not less than 10"
9+
10+
11+
print "What we just saw are conditional statements.
12+
print "It's ok if you do not understand them, we will look into them in greater details very soon."

0 commit comments

Comments
 (0)