lele1141 lele1141
  • 07-06-2021
  • Mathematics
contestada

Does anybody know 5.4.7: Teenagers CodeHs. Please help I am stuck in this

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 08-06-2021

Answer:

The program in Python is as follows:

age = int(input("Age: "))

if age>=13 and age <=19:

   print("Teenager")

else:

   print("Not a teenager")

Step-by-step explanation:

This gets input for age

age = int(input("Age: "))

This checks if age is between 13 and 19 (inclusive)

if age>=13 and age <=19:

If yes, the age is teenage

   print("Teenager")

If otherwise, the age is not teenage

else:

   print("Not a teenager")

Answer Link

Otras preguntas

point-slope of line's equation (-3,-7),(-8-11)
The two bones of the lower arm are _____.
I need science fair ideas for 4th grade, But i need something that won't need a oven, sunlight, ETC. Also, i need something that isn't Common (example: volcano)
How far will 660 J raise a block weighing 6 N
What is another name for pilgram
A plumber needs to drill a hole that is just slightly larger than 3/16 of an inch in diameter. Which measurement is the smallest but still larger than 3/16? 5/1
Who created a vast network of roads to link the empire? A. Aztec B. Maya C. Inca
A scientist is studying a unicellular organism. The organism normally looks like image A. Then the scientist places the cell in two different solutions. In the
Is there a easy way to do this problem? [In the photo below is the fraction]
how many presidents were assassinated?