+ 2
# Try it y={0:"zero",1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight", 9:"nine",10:"ten"} x=input() x=x.replace("10",y[10]) x=x.replace("0",y[0]) x=x.replace("1",y[1]) x=x.replace("2",y[2]) x=x.replace("3",y[3]) x=x.replace("4",y[4]) x=x.replace("5",y[5]) x=x.replace("6",y[6]) x=x.replace("7",y[7]) x=x.replace("8",y[8]) x=x.replace("9",y[9]) print(x)
21st May 2022, 2:59 AM
SoloProg
SoloProg - avatar
+ 1
ik :) Good job
21st May 2022, 3:10 AM
SoloProg
SoloProg - avatar