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 trialPeter Jonsson
1,857 PointsWhat is wrong with line 17? The code runs fine when i mark line 17 as a comment.
TICKET_PRICE = 10
tickets_remaining = 100
# use string formatting
print ("right now there are {} tickets left".format(tickets_remaining))
#Gather the user name and assing it to a new varaible
user_name = input ("what is your name? ")
print("Hi", user_name)
no_of_tickets = input (" {} ,how many tickets would you like? ".format(user_name))
no_of_tickets=int(no_of_tickets)
TOTAL_PRICE = TICKET_PRICE * no_of_tickets
print("you have to pay total, ",TOTAL_PRICE)
print("the amount due is €{}”.format(TOTAL_PRICE))
Peter Jonsson
1,857 PointsPeter Jonsson
1,857 PointsActually i found the answer myself, the problem was the ” instead of " (no idea how I managed to do that!!!).