Answers for "are nested if-else are allowed in python"

1

how to use nested if else in python

Your_hight = int(input("What is Your hight:- "))
if Your_hight >= 120:
    print("You are good to go to the roller coster")
    your_age = int(input("What is your Age:- "))
    if your_age > 8:
        print("This is your ticket and have your seat on the roller coster")
    else:
        print("Sorry you can't go to the roler coster")
Posted by: Guest on August-09-2021

Code answers related to "are nested if-else are allowed in python"

Python Answers by Framework

Browse Popular Code Answers by Language