Advertisement
nikol_bratkova

Untitled

Mar 13th, 2022
57
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. digit = input()
  2.  
  3. if digit == '0': print('zero')
  4. elif digit == '1': print('one')
  5. elif digit == '2': print('two')
  6. elif digit == '3': print('three')
  7. elif digit == '4': print('four')
  8. elif digit == '5': print('five')
  9. elif digit == '6': print('six')
  10. elif digit == '7': print('seven')
  11. elif digit == '8': print('eight')
  12. elif digit == '9': print('nine')
  13. else:
  14. print('not a digit')
Advertisement
RAW Paste Data Copied
Advertisement