Skip to content

Commit 023cc29

Browse files
committed
Added if_else.py to Python-Basic-to-Advance repo
1 parent f68bb42 commit 023cc29

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

if_else.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
height=int(input("enter height in feet:"))
2+
3+
if(height>3):
4+
print("Buy Token")
5+
print("Now You can board the metro" )
6+
#print("out of if block")
7+
else:
8+
print("No Token required")

0 commit comments

Comments
 (0)