On Nov 9, 2017, at 3:45 AM, John Ladasky <john_lada...@sbcglobal.net> wrote: > >> On Wednesday, November 8, 2017 at 11:40:18 PM UTC-8, Lawrence D’Oliveiro >> wrote: >>> On Thursday, November 9, 2017 at 7:51:35 PM UTC+13, r16...@rguktrkv.ac.in >>> wrote: >>> >>> How can I covert numbers into word like ex:-123 One hundred twenty three? >> >> Here’s <http://www.codecodex.com/wiki/Convert_an_integer_into_words> one I >> did earlier, in Algol 68. >> >> Conversion to Python is left as an exercise for the reader. > > I think that gives away rather more than I wanted the student to see. > -- > https://mail.python.org/mailman/listinfo/python-list
I thought the classic homework problem was to convert an Arabic numeral into a Roman numeral. Bonus points for correctly converting any number above 12 and/or copyright year from any old movie. Most students have seen Roman numerals on clocks (1-12). Maybe that's too hard for today's kids with digital clocks. Chris R. -- https://mail.python.org/mailman/listinfo/python-list