Skip to content

Commit dfe89cb

Browse files
committed
Added logical_operators.py to Python-Basic-to-Advance repo
1 parent c4aa863 commit dfe89cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

logical_operators.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
a,b=4,2
2+
print(a>b and b>a)#4>2 and 2<4->1 and 0->0
3+
print(a>b or b<a)#4>2 or 2<4->1 or 1->1
4+
print(not b)

0 commit comments

Comments
 (0)