Basic Caesar Cipher Code 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
First of all welcome to Codereview.

Good


You have a decent function.
You even have a nice docstring to describe what it does!
You have decent descriptive names.


Overall your code is good, well done!

Improvements


Make the starting_ascii value more generic, no more duplicated code.
Rais an appropriate exeption if no letter is given, you might want to handle that differently.




Revised code

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"""

    if letter.isupper():
        starting_ascii = ord('A')
    elif letter.islower():
        starting_ascii = ord('a')
    else:
        raise ValueError('Input is not a letter')

    alpha_index = ord(letter) - starting_ascii
    mod_26 = (alpha_index + num) % 26
    return chr(starting_ascii + mod_26)