#Title: Movie challenge #Author: Kieran Wheatley #Date: 3/11/26 #Version: 1 #Purpose: This program is used to figure out discounts for movie tickets by asking the ticket price and how namy people there are. print('Welcome to the Movie program') print('To use this program you will enter the number of tickets you want to purchase and how much the ticket cost') print('If you purchase 8 or more tickets you recive a 25% discount off the total cost.') print('..lets begin') while leave == 'No': # Input tickets = int(input('How many tickets are you buying? ')) price = int(input('What is the ticket price? ')) #V discount = price * 0.25 original = tickets * price discount_price = original - discount # Output if tickets >= 8: print(f'You receive a discount of {discount}') print(f'The total amount is (${original} - ${discount}) = ${discount_price}') else: print('No discount applied') print(f'The total amount is {tickets} x ${price} = ${original}') #Exit leave = input('Would you like to leave (Yes or No)? ') print('The program has ended')