"""File with methods for encryption"""


def caesar_cipher(text: str, step: int) -> str:
    encrypt = ""

    for letter in text:
        if letter.isupper():
            encrypt += chr((ord(letter) + step - 65) % 26 + 65)
        elif letter.islower():
            encrypt += chr((ord(letter) + step - 97) % 26 + 97)
        elif letter.isdigit():
            encrypt += str((int(letter) + step) % 10)
        else:
            encrypt += letter
    return encrypt

6444573bc07eb544c09e72d9823599748c6b84c8
<mask token>

<mask token>


def caesar_cipher(text: str, step: int) ->str:
    encrypt = ''
    for letter in text:
        if letter.isupper():
            encrypt += chr((ord(letter) + step - 65) % 26 + 65)
        elif letter.islower():
            encrypt += chr((ord(letter) + step - 97) % 26 + 97)
        elif letter.isdigit():
            encrypt += str((int(letter) + step) % 10)
        else:
            encrypt += letter
    return encrypt

"""File with methods for encryption"""


def caesar_cipher(text: str, step: int) -> str:
    encrypt = ""

    for letter in text:
        if letter.isupper():
            encrypt += chr((ord(letter) + step - 65) % 26 + 65)
        elif letter.islower():
            encrypt += chr((ord(letter) + step - 97) % 26 + 97)
        elif letter.isdigit():
            encrypt += str((int(letter) + step) % 10)
        else:
            encrypt += letter
    return encrypt
