Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Python Basics All Together Now Wrapping Up

Is 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
Chris Freeman
Treehouse Moderator 68,031 Points

Correct. 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
Szymon Dabrowski
2,193 Points

I'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: "
                card_exp = str(input("Please enter the card's Expiry Date: "))
                card_cvv = str(input("And, finally enter your CVV: "))