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.
Complete this function in Python3 to return the English version of a number. There are several cases to consider. If the
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Complete this function in Python3 to return the English version of a number. There are several cases to consider. If the
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!