Advertisement
bounslay

Untitled

Apr 24th, 2023
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. digit = input()
  2.  
  3.  
  4. match digit:
  5.     case '0':
  6.         print('zero')
  7.     case '1':
  8.         print('one')
  9.     case '2':
  10.         print('two')
  11.     case '3':
  12.         print('three')
  13.     case '4':
  14.         print('four')
  15.     case '5':
  16.         print('five')
  17.     case '6':
  18.         print('six')
  19.     case '7':
  20.         print('seven')
  21.     case '8':
  22.         print('eight')
  23.     case '9':
  24.         print('nine')
  25.     case _:
  26.         print('not a digit')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement