"Replace the substring: Given a string. Replace in this string all the numbers 1 by the word one." - Snakify python coding question

 



 

CODING QUESTION

Given a string. Replace in this string all the numbers 1 by the word one.


SOLUTION

s=str(input())
print(s.replace('1','one'))

 

Input : 1+1=2

Output : one+one=2