I have this problem that I can´t solve. I have this function:
def ex2(tex_ori):
let = ("a" or "A")
text_troc = tex_ori.replace(let, "x")
return text_troc
And the execution for this is:
text_ori = input("Write a sentence: ")
text_1 = ex2(text_ori)
print(text_1)
But the only letter being replaced is just "a". What am I doing wrong and what should i do?
I am expecting that all letters "a" and "A" are replaced with the letter "x". For an example: Sentence: Hi my name is Alex. The return should be: Hi my nxme is xlex.
Thanks for the attention and help.