Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- digit = input()
- match digit:
- case '0':
- print('zero')
- case '1':
- print('one')
- case '2':
- print('two')
- case '3':
- print('three')
- case '4':
- print('four')
- case '5':
- print('five')
- case '6':
- print('six')
- case '7':
- print('seven')
- case '8':
- print('eight')
- case '9':
- print('nine')
- case _:
- print('not a digit')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement