Program - function to create a dictionary of mirror of letter.


Topic: Program - function to create a dictionary of mirror of letter.

Solution

def letter_mirror():
    import string
    letter = string.ascii_lowercase
    rvr_letter = letter[::-1]
    dict_char = dict(zip(letter, rvr_letter))
    return dict_char



List all Python Programs