Skip to content

How to use if else in Python?

print("Welcome to Rolercoster rider")
#taking input of your hight
Your_hight = int(input("What is Your hight:- "))
#if condition 
if Your_hight >= 120:
    print("You are good to go to the roller coster")
    print("Grow taller to go to the rolercoster")
See also  Remove decimal part of a number in Python

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.