Question
Write a complete syntactically correct Python program that does the following: asks the used to enter a person's age and read a float number from
Write a complete syntactically correct Python program that does the following:
asks the used to enter a person's age and read a float number from the keyboard into a variable called age
display a message depending on the age range as follows:
-- if age is 1 year or less, the message is "The person is an infant"
-- if age is older than 1 year but younger than or equal to 13, the message is "The person is a child"
-- if age is older than 13 years but younger than 20, the message is "The person is a teenager"
-- if age is 20 or older, the message is "The person is an adult"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started