Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMinseok Kim
2,708 PointsCODE 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
frozenaught
4,849 PointsHello @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)))'''