Skip to content

Commit 7a89ad9

Browse files
committed
add boolean file and update readme
1 parent bf64946 commit 7a89ad9

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

BooleanExpressions.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
print(5 == 5)
2+
print(5 == 6)
3+
print(type(True))
4+
5+
x = 3
6+
y = 4
7+
8+
print(x == y) # (x is equal to y)
9+
print(x != y) # (x is not equal to y)
10+
print(x > y ) # (x is greater than y)
11+
print(x < y )# (x is less than y)
12+
print(x >= y) # (x is greater than or equal to y)
13+
print(x <= y) # (x is less than or equal to y)
14+
print(x is y) # (x is the same as y)
15+
print(x is not y) # (x is not the same as y)

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
3. [Comments](Comments.py)
1111
4. [New Line](NewLine.py)
1212
5. [Math Operations](MathOperations.py)
13+
6. [Variables](Variables.py)
14+
7. [Boolean Expressions](BooleanExpressions.py)
1315

1416
###### All of this code is licensed to Genesis Code and may not be used without permission.
1517

0 commit comments

Comments
 (0)