Odpowiedź :
text = input("Podaj wyraz: ")
for i in range(1,len(text)):
z = text[i]
if i%2!=0:
text = text.replace(z,"x")
print(text)
text = input("Podaj wyraz: ")
for i in range(1,len(text)):
z = text[i]
if i%2!=0:
text = text.replace(z,"x")
print(text)