← Back to challenges

Change Every Letter to the Next Letter

PythonHardstringsformattingcryptography

Instructions

Write a function that changes every letter to the next letter:

  • "a" becomes "b"
  • "b" becomes "c"
  • "d" becomes "e"
  • and so on ...

Examples

move("hello") ➞ "ifmmp"

move("bye") ➞ "czf"

move("welcome") ➞ "xfmdpnf"

Notes

There will be no z's in the tests.

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Which Function Returns the Larger Number?