how can i display a sentence in the my program ..
if i have this sentence: " i play football" and i want to replace a letter "o" for example with "e"....
i do that with the following code and that code Displays the Adjustments that it did on the sentence for example :" feetball" but doesn't Display the sentences for example: "i play feetball" how can i display the complete sentence after editting
the code that i use: ــــــــــــــــــ
f="ذهب الولد إلى الشاطىء و تحدث بشكل هادىء و كان يسيير في بطئ و يمسك في يده شيئ"
x=f.split()
for s in x:
if s.endswith("ئ") and len(s)==3 :
print(s.replace("ئ","ء"))
if s.endswith("ىء") and len(s)>=5:
print(s.replace("ىء","ئ"))