def encrypt_vigenere(message: str, key: str) -> str:
encrypted = ""
key_index = 0
for letter in message:
k = ord(key[key_index]) - ord("a")
encrypted_letter = ord(letter) + k
if encrypted_letter > ord("z"):
encrypted_letter = ord("a") + encrypted_letter - ord("z")
encrypted += chr(encrypted_letter)
key_index += 1
key_index %= len(key)
return encrypted
message = "computerscience"
key = "cat"
encrypted = encrypt_vigenere(message, key)
print(encrypted)