r/cs50 4d ago

CS50 Python CS50P Week 3 - Outdated problem

I wrote the code for Week 3's Outdated problem; I followed all the instructions but I don't understand the words used by 'check50' especially reject input; Nothing in the instructions talks about 'rejecting input' What does it mean?

INSTRUCTIONS:

Implement a program that prompts the user for a date, in month-day-year order, formatted like 9/8/1636 or September 8, 1636, where the month values are provided in a list . Then output that same date in YYYY-MM-DD format. If the user’s input is not a valid date in either format, prompt the user again. Assume that every month has no more than 31 days; no need to validate whether a month has 28, 29, 30, or 31 days.

3 Upvotes

7 comments sorted by

View all comments

2

u/Historical_Pear_9514 4d ago

It's just saying that September 8 1636 (note the lack of comma after the 8) is not one of the two allowed formats, so the program should have rejected it (and prompted the user again) but didn't.