We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44d5304 commit 80e6760Copy full SHA for 80e6760
1 file changed
Nested_else_if.py
@@ -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