Код: Выделить всё
phrase = input()
phrase = phrase.replace('hey', 'hi')
print(phrase)
Я попробовал использовать .replace(), и он просто не работает.
Подробнее здесь: https://stackoverflow.com/questions/786 ... all-python
Код: Выделить всё
phrase = input()
phrase = phrase.replace('hey', 'hi')
print(phrase)