Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise: ROT13

  • rot13

  • Implement ROT13:

  • Create a script called rot13.py that given a string on the command line will print the ROT13 version of the string.

  • It should work like this:

$ python rot13.py "Hello World!"
Uryyb Jbeyq!

$ python rot13.py "Uryyb Jbeyq!"
Hello World!