Ad
Code
Diff
  • converter = lambda n: (None, ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"][n])[-1 < n < 10]
    • converter = lambda n: ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"][n] if n < 10 else None
    • converter = lambda n: (None, ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"][n])[-1 < n < 10]