fork(1) download
  1. digits = ["Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"]
  2.  
  3. f = lambda n: f(n / 10) + digits[n % 10] if n > 0 else ""
  4. list = [f(n) for n in [16, 58, 510]]
  5.  
  6. for s in list:
  7. print(s)
  8.  
Success #stdin #stdout 0.01s 7896KB
stdin
Standard input is empty
stdout
OneSix
FiveEight
FiveOneZero