Question: Write a function thut takes a string like 'ene fir: twp: and refurns the corresponding integer fin this case, 152). A function just like this
Write a function thut takes a string like 'ene fir: twp: and refurns the corresponding integer fin this case, 152). A function just like this would be used in a speech recognition system (e.g, aitcmated phone taxi bookings) to convert a spoken number into an. integer value Here is an attempt that wont work. Your task is to replace the function body with something that works: def words2number(s)z return int(s)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
