#Title: Movie Tickets #Author: Ari Ross #Date: 3/11/2026 #Version: 1 #Purpose: Calculate the price of tickets for a group of people def gather(): group = int(input("How many tickets are you buying? ")) ticket_str= (input("What is the ticket price? ")) ticket_int = int(ticket_str) return [group, ticket_str, ticket_int] def calc(ticket_int, ticket_str, group): total = ticket_int * group if group >= 8: discount = total * 0.25 final = total - discount print(f"You recieve a discount of ${discount}") print(f"The total amount is (${total} - ${discount}) = ${final}") else: print("No discount applied") print(f"The total amount is {group} x ${ticket_str} ${total}") victim_willing = 'true' #Introduction print("Welcome to the Movie program") print("To use this program you will enter the number of tickets you want (between 1 and 20) to purchse and how much the tickets cost (between $5 and $20)") print("If you purchase 8 or more tickets you recieve a 25% discount off the total cost.") print("...lets begin") while victim_willing == 'true': #Inputs gathered_list = gather() ticket_int = gathered_list[2] ticket_str = gathered_list[1] group = gathered_list[0] #Outputs calc(ticket_int, ticket_str, group) consent = input("Would you like to go again? [Y/N]") if consent == 'N': victim_willing = 'false' print("The program has ended")