+ 2
How to handle a try/except so it doesn't stop iterating
The program detects dates in the format dd/mm/yyyy. I would like my list of invalid_dates to include all of them, not just the first it finds. How should I organize my try/except so it can continue iterating after finding an exception? (full description in the code) https://code.sololearn.com/cIvgf8piFf3o/?ref=app
3 ответов