Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions