



def 		__snake_case						(    _UpperCAmelCase       ,			_UpperCAmelCase				):
					"""simple docstring"""






					if not isinstance(_UpperCAmelCase       ,			_UpperCAmelCase				):
										raise TypeError('plaintext must be a string'				)
					if not isinstance(_UpperCAmelCase       ,			_UpperCAmelCase				):
										raise TypeError('key must be a string'				)

					if not plaintext:
										raise ValueError('plaintext is empty'				)
					if not key:
										raise ValueError('key is empty'				)

					key += plaintext
					lowercase						   =       plaintext.lower()
					lowercase						   =       key.lower()
					lowercase						   =       0
					lowercase						   =       0
					lowercase						   =       ''
					while plaintext_iterator < len(_UpperCAmelCase				):
										if (
										    ord(plaintext[plaintext_iterator]				) < 97
										    or ord(plaintext[plaintext_iterator]				) > 1_22
										):
															ciphertext += plaintext[plaintext_iterator]
															plaintext_iterator += 1
										elif ord(key[key_iterator]				) < 97 or ord(key[key_iterator]				) > 1_22:
															key_iterator += 1
										else:
															ciphertext += chr(
															    (
															        (ord(plaintext[plaintext_iterator]				) - 97 + ord(key[key_iterator]				))
															        - 97
															    )
															    % 26
															    + 97				)
															key_iterator += 1
															plaintext_iterator += 1
					return ciphertext





def 		__snake_case						(    _UpperCAmelCase       ,			_UpperCAmelCase				):
					"""simple docstring"""






					if not isinstance(_UpperCAmelCase       ,			_UpperCAmelCase				):
										raise TypeError('ciphertext must be a string'				)
					if not isinstance(_UpperCAmelCase       ,			_UpperCAmelCase				):
										raise TypeError('key must be a string'				)

					if not ciphertext:
										raise ValueError('ciphertext is empty'				)
					if not key:
										raise ValueError('key is empty'				)

					lowercase						   =       key.lower()
					lowercase						   =       0
					lowercase						   =       0
					lowercase						   =       ''
					while ciphertext_iterator < len(_UpperCAmelCase				):
										if (
										    ord(ciphertext[ciphertext_iterator]				) < 97
										    or ord(ciphertext[ciphertext_iterator]				) > 1_22
										):
															plaintext += ciphertext[ciphertext_iterator]
										else:
															plaintext += chr(
															    (ord(ciphertext[ciphertext_iterator]				) - ord(key[key_iterator]				)) % 26
															    + 97				)
															key += chr(
															    (ord(ciphertext[ciphertext_iterator]				) - ord(key[key_iterator]				)) % 26
															    + 97				)
															key_iterator += 1
										ciphertext_iterator += 1
					return plaintext


if __name__ == "__main__":
		import doctest

		doctest.testmod()
		__magic_name__       =     int(input('''Type 1 to encrypt or 2 to decrypt:'''))
		if operation == 1:
				__magic_name__       =     input('''Typeplaintext to be encrypted:\n''')
				__magic_name__       =     input('''Type the key:\n''')
				print(encrypt(plaintext, key))
		elif operation == 2:
				__magic_name__       =     input('''Type the ciphertext to be decrypted:\n''')
				__magic_name__       =     input('''Type the key:\n''')
				print(decrypt(ciphertext, key))
		decrypt('''jsqqs avvwo''', '''coffee''')











def 		__snake_case						(    _UpperCAmelCase       ,			_UpperCAmelCase				):
					"""simple docstring"""






					for index, item in enumerate(_UpperCAmelCase				):
										if item == target:
															return index
					return -1





def 		__snake_case						(    _UpperCAmelCase       ,			_UpperCAmelCase       ,			_UpperCAmelCase       ,			_UpperCAmelCase				):
					"""simple docstring"""






					if not (0 <= high < len(_UpperCAmelCase				) and 0 <= low < len(_UpperCAmelCase				)):
										raise Exception('Invalid upper or lower bound!'				)
					if high < low:
										return -1
					if sequence[low] == target:
										return low
					if sequence[high] == target:
										return high
					return rec_linear_search(_UpperCAmelCase       ,			low + 1       ,			high - 1       ,			_UpperCAmelCase				)


if __name__ == "__main__":
		__magic_name__       =     input('''Enter numbers separated by comma:\n''').strip()
		__magic_name__       =     [int(item.strip()) for item in user_input.split(''',''')]

		__magic_name__       =     int(input('''Enter a single number to be found in the list:\n''').strip())
		__magic_name__       =     linear_search(sequence, target)
		if result != -1:
				print(F"""linear_search({sequence}, {target}) = {result}""")
		else:
				print(F"""{target} was not found in {sequence}""")






