Skip to the content.

Program with selection/condition • 1 min read

#Prompt the user for their age and store it in the 'age' variable
age = int(input("Please enter your age: "))



#Check the value of ‘age’ and display an appropriate message if age >= 18: print(“You are an adult.”) else: print(“You are a minor.”)