Page 1 of 1

The solution is in Python Complete this function in Python3 to return the English version of a number. There are several

Posted: Mon May 09, 2022 7:00 am
by answerhappygod
The solution is in Python
Complete this function in Python3 to return the English version
of a number. There are several cases to consider. If the number is
< 0 or > 100, return Error. If the number is 0, return
"zero". If it is 100, return "one hundred". If it is less than 10,
return "one", "two", etc. If it is less than 20, return "ten",
"eleven", etc. If the ones digit is zero (20, 30, etc), return
"twenty", "thirty", etc. Otherwise, return "forty five" etc.