A program is needed in which if the age is greater than or less than 18, the program is returned at the time of input. And if it is equal to 18 then the program continues to work
Help me pls[Python]
#2
Posted 29 March 2022 - 06:49 AM
age=int(input("Inter your age"))
A program is needed in which if the age is greater than or less than 18, the program is returned at the time of input. And if it is equal to 18 then the program continues to work
like this?
age = int(input("Enter your age: ")) if age < 18 or age > 18: print(f"Your age without equal: {age}") elif age == 18: print(f"Your age with equal: {age}")
Best dude - Jim2244
-----------------------------------------------------------------
I WILL NEVER ADD YOU FIRST
ALWAYS PM ME FIRST ON NULLED BEFORE DEALING IN THIRD PARTY APPLICATIONS
-----------------------------------------------------------------
Users browsing this thread: