this is my code:
phrase = input()
phrase = phrase.replace(‘hey’, ‘hi’)
print(phrase)
when i put ‘hey’ as the input, i still get ‘hey’ as the output. I don’t understand why it isn’t working.
i tried using .replace() and it simply isnt working.
New contributor
Parker Campellone is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.