I'm trying to write a function that is supposed to take a string like "abcd" and move the letter up or down by a certain number.
rolling_cipher("abcd", 1) ➞ "bcde"
Here is my code so far:
import string
def rolling_cipher(String, num):
letters = string.ascii_lowercase
print(letters)
String = String.index(string)
rolling_cipher("abcd", 2)