def char():
    letter = str(input("Input Letter from alphabet: "))
    x = int(input("Input Value to shift letter to the right x number of times: : "))
    newLetter = ord(letter) + x
    if newLetter > 90 and newLetter < 97:
        remainder = newLetter % 90
        newLetterI = 65 + remainder
        print(chr(newLetterI))
    elif newLetter > 122:
        remainder = newLetter % 122
        newLetterI = 97 + remainder
        print(chr(newLetterI))
char()
This is my code that shifts the letter to the right a 'number' of times. It is very long winded, but it was the only way i found how to do it without having lots of errors that i didn't really understand. I was just wondering if it is ok, and was just wondering if the wrapping back around once the alphabet reached Z or z ok.