a way of managing errors for an example in task 32
corrected PEP8 and removed duplicated statement
Removed unnecesary else. Corrected PEP8