I am tring to convert all the independent number to number's vocabulary in a given string,for example (I have 10 apples and 0 pencil) need to be converted to (I have 10 apples and zero pencil). However, I cannot directly assign string in list object, please help me, thanks! Here is my code, I am not very familier with python, thanks guys!
s = input()
for i in range(len(s)):
if(s[i] == '0'):
s[i] = "zero"
print(s)
s.replace("0", "zero")10not convert toten?