1 2 3 4 5 6 7 8 9 10 11 12 13 14 | def solution(s): s = s.replace(‘zero’, ‘0’) s = s.replace(‘one’, ‘1’) s = s.replace(‘two’, ‘2’) s = s.replace(‘three’, ‘3’) s = s.replace(‘four’, ‘4’) s = s.replace(‘five’, ‘5’) s = s.replace(‘six’, ‘6’) s = s.replace(‘seven’, ‘7’) s = s.replace(‘eight’, ‘8’) s = s.replace(‘nine’, ‘9’) answer = int(s) return answer | cs |