Skip to main content
1 vote

PSET 6: - stuck on "SyntaxError: invalid syntax"

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 ...
MARS's user avatar
  • 5,179
1 vote
Accepted (PSET 6) ValueError: invalid literal for int() with base 10

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.
DinoCoderSaurus's user avatar

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