Ledger Nano X - The secure hardware wallet
SHARE
TWEET

num2str

a guest Apr 9th, 2020 186 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def num2str(num):
  2.     txt = {'0': 'zero',
  3.            '1': 'jeden',
  4.            '2': 'dwa',
  5.            '3': 'trzy',
  6.            '4': 'cztery',
  7.            '5': 'piec',
  8.            '6': 'szesc',
  9.            '7': 'siedem',
  10.            '8': 'osiem',
  11.            '9': 'dziewiec'
  12.            }
  13.     strNum = ''
  14.     for n in num:
  15.         if n in txt:
  16.             strNum = strNum + txt[n] + " "
  17.     return strNum
  18.  
  19. digits = input('Give me the nuber: ')
  20. print(num2str(digits))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top