#Write a program that calculates the total cost of amusement park #ticket. #Input: full price of the ticket (float) and age of the person #(integer). #Output: Total price after discount is taken #Ticket Price Rules: # age 0-5: free # age 6 - 18: 25% discount # 19 and older: full price #We will check validity of the input. #Input age=int(input("enter age ")) price=float(input("enter price ")) #Assuming the Input is VALID in this solution if price>0: if 0=19: final=price print("final price is", format(final,".2f")) else: print("invalid input for age") else: print("invalid input for price")