Dark theme

Hints


You basically need a function that takes in a letter, finds out its number, and then returns a character which is the original number plus one. The decrypting function would do the reverse. Once you have your functions, you can loop through the user's input string converting each letter in turn and adding it to a string which is empty at the start of the process. You can get letters in strings using a for letter in text loop.


One answer