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

About how many feet does a team of athletes run in a 1600meter relay race?
True or False: The Democratic Republic of the Congo avoided conflict and civil war after receiving independence from Belgium.
How do decomposers interact with their ecosystem
What is 13,300 in scientific notation form ?
Solve equation for y. 2/5x+y=7
Rising demand for tobacco in Europe during the colonial period was responsible for _______ (PLEASE HELP)
A natural gas company is laying gas pipe underground to connect new customers in a subdivision. Each pipe is 18 feet long. If the total length of pipe needed f
3x-7y=17   when x=-3,0,3
What is the standard form of 1.30 million
YW bisects <XYZ. m<XYW=(2x+7) and m<XYZ= (6x-8). find the value of the X and the measure of <XYZ