You are developing a Python program to determine a person's life stage based on their age. The life stages are defined as 'Child' (less than 13 years), 'Teenager' (13 to 19 years), and 'Adult' (20 years and above). However, the lines of code you wrote are in incorrect order. Your task is to properly reorder the lines to ensure the program works as expected.
Determining life stage based on age
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
output = "You are an adult."
if age < 13:
print(output)
output = "You are a teenager."
else:
elif age < 20:
output = "You are a child."
age = 18
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.