In: Computer Science
amusement park that charges different rates for different age groups: (1) Admission for anyone under age 4 is free; (2) Admission for anyone between the ages of 4 and 18 is $5; (3) Admission for anyone age 18 or older is $10. Write a Python program that outputs a person's admission fee.
Please give me the answer with showing the full details how to do it in jupitar note book. The answer is in the chegg its so confusing and i want to see the full details in jupitar notebook.
Code
age=int(input("enter age of a person: "))#press shift+Enter and then type the age the press Enter
if(age<4):
print("No admission fee.")
elif(4<=age<=18):
print("admission fee is $5")
else:
print("Admission fee is $10")
#we can write segments of code in each cell write a segment of
code and
#press shift+Enter or just press "Run" on the menu.
#to run it to see output.you can add new cells between cells
and
#remove cells by using the options above
Image in Jupyter