so this is the code i made in pyhton and for some reason it does not work so i hoped that someone here could help me find a solution * i am just a begginer *
def replace(phrase):
replaced = ""
for word in phrase:
if word == ("what"):
replaced = replaced + "the"
else:
replaced = replaced + word
return replaced
print(replace(input("enter a phrase: ")))