Розкажіть нам, що сталося:
help me pls i cannot do this task help plisssssssse
Ваш код
# User Editable Region
text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
encrypted_text = ''
for char in text.lower():
index = alphabet.find(char)
char == ' '
new_index = index + shift
encrypted_text += alphabet[new_index]
print('char:', char, 'encrypted text:', encrypted_text)
# User Editable Region
Інформація про ваш браузер:
Агент користувача: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0
Інформація про завдання:
Вивчіть маніпуляцію рядками, створивши шифр - Крок 40