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 trialmichael williams
19,492 Pointsinside function text formatted comes up as {} in only one spot.. while working everywhere else. hoping for enlightenment
I was wondering if someone could enlighten me why only in my first print statement the 'name' => using the argument customer does not show up? It just shows the {} curly braces. I attached my snapshot which is easier than a snippet of code for it is too long otherwise.
thanks for any advice or tips in advance :)
1 Answer
Chris Freeman
Treehouse Moderator 68,428 PointsBecause format
is outside the input()
call instead of inside:
ticket_purchase = input('{}, how many tickets would you like to purchase at $10.00 a ticket? > '.format(
customer))
michael williams
19,492 Pointsmichael williams
19,492 Pointsthank you!