def solution(s):
answer = 0
num = ['zero','one','two','three','four','five','six','seven','eight','nine']
for i in range(len(num)):
if num[i] in s:
s = s.replace(num[i], str(num.index(num[i])))
answer = int(s)
return answer
def solution(s):
answer = s
num = {'zero':'0', 'one':'1', 'two':'2', 'three':'3', 'four':'4'
,'five':'5', 'six':'6', 'seven':'7', 'eight':'8', 'nine':'9'}
for k, v in num.items():
answer = answer.replace(k, v)
return int(answer)