Started By
Message

re: Python programming?

Posted on 4/11/15 at 10:30 pm to
Posted by Korkstand
Member since Nov 2003
28712 posts
Posted on 4/11/15 at 10:30 pm to
First off your else doesn't need to test not equal, it can just print the date is not magic.

Second, are you required to validate the date? If so, there is surely a module to do it for you. If you aren't allowed to use modules, then you will have to check them manually, but that's not too hard. Just if month is 2, day has to be less than 30, if month is 4, 6, 9, or 11, day has to be less than 31, and the rest less than 32. And of course all have to be greater than 0.
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on Twitter, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookTwitterInstagram