Skip to content

Commit 777562f

Browse files
authored
Add boolean examples (#27)
1 parent e23ff66 commit 777562f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

basics/boolean_example.py

100644100755
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ def main():
88
False
99
>>> 3 < 4
1010
True
11+
>>> 3 < 4 < 5
12+
True
13+
>>> 3 < 4 > 5
14+
False
1115
1216
>>> name = "Python"
1317
>>> age = 29
@@ -42,6 +46,10 @@ def main():
4246
True
4347
>>> bool("hi")
4448
True
49+
>>> bool([])
50+
False
51+
>>> bool([''])
52+
True
4553
"""
4654

4755

0 commit comments

Comments
 (0)