Python Python Basics All Together Now Gather Information

CODE WON'T RUN

TICKET_PRICE = 10

tickets_remaining = 100

print("there are {} tickets remaining.".format(tickets_remaining))

name = input("what is your name? ")

number_of_tickets = int(input("{}, how many tickets do u want? ".format (name))

print("the total cost for {} number of tickets is {}".format (number_of_tickets, TICKET_PRICE * number_of_tickets))

What's wrong?

1 Answer

speeddemon
speeddemon
4,433 Points

Hello @Minseok Kim, it seems you may be missing 1 parentheses in the number_of_tickets line, it should be: '''number_of_tickets = int(input("{}, how many tickets do u want? ".format (name)))'''