Skip to content

Commit 7550f2a

Browse files
author
TechMainul
committed
03.and_or.py added
1 parent dd8256f commit 7550f2a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

chapter_03/03.and_or.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# check two condition at same time
2+
# and , or
3+
4+
name = "abc"
5+
age = 19
6+
print("and operator :")
7+
8+
if name == "abc" and age == 19:
9+
print("True")
10+
else:
11+
print("False")
12+
13+
print("\nor operator :")
14+
15+
if name == "abcd" or age == 20:
16+
print("True")
17+
else:
18+
print("False")
19+

0 commit comments

Comments
 (0)