Computer Science, asked by yashmansukhani34316, 2 months ago

Write a python program to input a line of text and a word and replace the word with a new word which is in putted by the user. Do not use the any built in functions.

Answers

Answered by nischalkant06
0

Answer:

text1=input("please enter a line")

old_word=input("which word do you want to replace")

new_word=input("write new word to with you want to replace the txt")

final_text=text1.replace("old_word" , "new_word")

print(final_text)

Explanation:

have fun run it and tell is it correct...

Answered by jeeya666
1

Answer:

idk

Explanation:

Write a python program to input a line of text and a word and replace the word with a new word which is in putted by the user. Do not use the any built in functions.

Similar questions