Skip to content

Commit 80e6760

Browse files
committed
Added Nested_else_if.py to Python-Basic-to-Advance repo
1 parent 44d5304 commit 80e6760

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Nested_else_if.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
height=(int(input("What is your height in feet :")))
2+
if height>=3:
3+
print("You can ride")
4+
age=(int(input("What is your age:")))
5+
if age<=18:
6+
print("Pay 250 Rs")
7+
else:
8+
print("Pay 500 Rs")
9+
else:
10+
print("Cant Ride")
11+
print("Bye")
12+
13+

0 commit comments

Comments
 (0)