1 vote
Accepted

PSET 6: Caesar.py - 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,169
1 vote
Accepted

Caesar.py (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