Infant, Child, Teenager, and Adult Program

This lab was tough for me to write due to my lack of experience with programs. I found that the smallest of errors would impact the entire program immensely and would cause issues. It was very frustrating when certain commands didn’t work or gave the wrong output but overall this lab greatly helped me get a feel for programming and the basics of writing one.

age = (float(input(“What is your age?”)))
if 0 <= age <= 4:
print (‘infant’)
if 5 <= age <= 12:
print (‘child’)
if 13 <= age <= 17:
print (‘Teenager’)
if age >= 18:
print (‘Adult’)