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 ...
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.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
caesar.py × 6pset6 × 3
pset6python × 2
python × 1
cs50x2017 × 1
syntax × 1
syntaxerror × 1
pset6-caesar × 1