Could I have a couple people look over my code for a general readability check? Just make sure it is following Python standards.
def casear_cipher(letter, num):
""" This function acts like a Casear Cipher.
Replaces an input letter with another letter a fixed
number of spaces farther down the alphabet
Args:
* letter (string) - any upper case or lower case letter
* num (integer) - any integer value to shift to a new letter
"""
#Range 65 to 91 is ASCii values for uppercase alphabet
if ord(letter) in range (65, 91):
x = ord(letter) - ord('A')
num_mod_26 = (x + num) % 26
final_output = chr(ord('A') + num_mod_26)
return final_output
#Range 97 to 123 is ASCii values for lowercase alphabet
elif ord(letter) in range (97, 123):
x = ord(letter) - ord('a')
num_mod_26 = (x + num) % 26
final_output = chr(ord('a') + num_mod_26)
return final_output