Hello Christopher,
I just wanted to let you know that in your section with validate height you would run into some edge cases with the last if statement.
For example for my quiz input this solution wouldn't work.
You should consider the if elif and append an else at the end to catch all remaining cases.
An else wouldn't let the flow through to validate the Validate strings/enums, so would have to reorder the code then. Could you share what the case is in your input that I don't catch? :)
Hello Christopher,
I just wanted to let you know that in your section with validate height you would run into some edge cases with the last if statement.
For example for my quiz input this solution wouldn't work.
You should consider the if elif and append an else at the end to catch all remaining cases.
If you want to highlight your python code here on dev.to just write python after the three backticks ;)
Cheers,
Christian
Thanks for the tip on highlighting! :D
An
else
wouldn't let the flow through to validate theValidate strings/enums
, so would have to reorder the code then. Could you share what the case is in your input that I don't catch? :)Hello Christopher,
I can only tell that your solution is off by 1 compared to mine at my input file.
I use this code right here:
My console output:
Maybe I have time tomorrow to find the specific case for you.
Cheers ;)