I keep getting a syntax error on the colon and/or variable name in the first if statement, but I don't understand what I'm doing wrong. I've tried a few changes but keep getting stuck here.

This is what I have:

# define the main function def main(): sales = int(input("Enter the number of packages purchased (eg, 25): ") #compute discount if quantity < 9: discount = 0 elif quantity < 20: discount = 0.2 print "Quantity Discount = 20% off" elif quantity < 50: discount = 0.3 print "Quantity Discount = 30% off" elif quantity < 100: discount = 0.4 print "Quantity Discount = 40% off" else: discount = 0.5 print "Quantity Discount = 50% off" # compute & display amount of discount & total amount of purchase retailPrice = sales*99 discountAmount = retailPrice * discount totalAmount = retailPrice - discountAmount #show totals print "Order Value (before discount): ", retailPrice print "Total Discount: $", discountAmount print "Total Purchase Price: ", totalAmount # call the main function main()