PY
py
1
2
3
4
5
6
7
8
9
10
11
dict={'1':'one','2':'two','3':'three','4':'four','5':'five','6':'six','7':'seven','8':'eight','9':'nine', '10':'ten','0':'zero'}
string=input()
qwerty=''
for i in range(len(string)):
if string[i] in ['0','1','2','3','4','5','6','7','8','9','10']:
qwerty=qwerty+dict[string[i]]
else:
qwerty=qwerty+string[i]
if 'onezero' in qwerty:
qwerty=qwerty.replace("onezero", "ten")
print(qwerty)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run