def password_shift(text, password): new_text = ""; text = text.lower(); password = password.lower(); adjust = ord('a') - 1; for i in range(len(text)): letter_number = ord(text[i]) - adjust; password_letter_number = ord(password[i%len(password)]) - adjust; new_letter_number = (letter_number + password_letter_number) % 26; new_text += chr(new_letter_number + adjust); print(new_text);