Task
Define a function rot13 that takes one parameter:
Name
|
Type
|
Example Input
|
input_str
|
str
|
"Hello world!"
|
When called, the function should return a new string which has been encrypted using ROT13. Numbers and symbols should not be rotated, they can be kept the same.
Starter Code
Get Programming Puzzles: Python Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.