1

It is as easy as replacing else with elif, in python a condition is not allowed after an else, remember that else is executed if the if condition is not fulfilled, if we want to impose a new condition we must use elif: if condition: ....code elif condition1: ....code else: ....code


1

The message is telling you that 'h' cannot be changed to an int. True enough. From the Hints section of the spec: You might find chr and/or ord of help. I think chr is what you want, not int.


Only top voted, non community-wiki answers of a minimum length are eligible