New answers tagged

0 votes

The code allways prompt to enter a new date when entering the date. How to correct my code in order to have the right answer?

i changed the first main() function and i could output for this format eg. September 3, 2015 but for this format 12/12/1985, it allways prompt to enter the date again. def main(): while True: ...
Horace's user avatar
  • 1
0 votes

The code allways prompt to enter a new date when entering the date. How to correct my code in order to have the right answer?

you have nothing to get you out of your outermost while True loop. you need to add a break statement somewhere when the success case is reached. also instead of inserting a break into the if and else ...
UpAndAdam's user avatar
  • 526

Top 50 recent answers are included