Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions conditional_if_elif.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
def main():
Age=input("enter your Age:")
if(int(Age)>=8 and int(Age)<=10):
Age = int(input("enter your Age : "))
if(Age >= 8 and Age <= 10):
print("children")
print("children")
print("children")
print("children")
elif(int(Age)>=11 and int(Age)<=15):
elif(Age >= 11 and Age <= 15):
print("kids")
elif(int(Age)>=16 and int(Age)<=18):
elif(Age >= 16 and Age <= 18):
print("Tingers")
elif(int(Age)>=19 and int(Age)<=30):
elif(Age >= 19 and Age <= 30):
print("Young")
else:
print("Out of range")
Expand All @@ -19,4 +19,4 @@ def main():



if __name__ == '__main__':main()
if __name__ == '__main__':main()