def converter(number: int, /) -> str: if 10 > number: return '0123456789'[number] else: return encode(number // 10) + '0123456789'[number % 10]
def converter(number):return {0: 'zero', 1: 'one', 2: 'two', 3: 'three', 4: 'four', 5:'five', 6: 'six', 7:'seven', 8: 'eight', 9: 'nine'}[number];- def converter(number: int, /) -> str:
- if 10 > number:
- return '0123456789'[number]
- else:
- return encode(number // 10) + '0123456789'[number % 10]