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 trialAngela Anders
1,844 PointsIs there a reason why Craig left the "TODO" on the program for credit card info?
I'm assuming that the "TODO" for this was left "TODO" because it's beyond the scope of what Craig was going through in this lesson, correct?
2 Answers
Chris Freeman
Treehouse Moderator 68,441 PointsCorrect. The specifics on working with credit card information processing can be very complicated. Not necessarily from a python language standpoint but rather from intricate details that wouldn't really add to the overall lesson. So Craig left this as a TODO.
Szymon Dabrowski
2,207 PointsI've done this just to practice. But implementing an actual payment system is definitely out of scope for this course haha.
#TODO: Error Handling for entering card information.
credit_card = str(input("{}, Please enter your credit card number: "
.format(user_name)))
card_exp = str(input("Please enter the card's Expiry Date: "))
card_cvv = str(input("And, finally enter your CVV: "))
print("Processing...")
print("SOLD!")