Skip to content

Commit a69dc62

Browse files
committed
logical opearator program add
1 parent cb83f33 commit a69dc62

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

003-day/Program10.py

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# In this section we are going to learn about logical operators
2+
3+
#There are 3 types of logical operators
4+
5+
# and : If all the condition is satisfied, then this will return true
6+
# or : If either on of the condition is satisfied, then this will return true
7+
# not: It will return the inverse of the true or false
8+
9+
print("Check your category in school sports")
10+
age = int(input("Enter your age: "))
11+
12+
if age < 6:
13+
print("Your category is Kids")
14+
if age > 6 and age < 12:
15+
print("Your category is Junior")
16+
if age > 12 and age < 18:
17+
print("Your category is Senior")
18+
else:
19+
print("You are not eligible for participating the evenr.")

0 commit comments

Comments
 (0)