Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 10th, 2020 118 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # https://vk.com/atom_exposion
  2.  
  3. n = int(input('Введи число от 1 до 20: '))
  4. k = 3
  5.  
  6. ls = []
  7. while n > 0:
  8.     n, a = divmod(n, k)
  9.     ls = [a] + ls
  10.  
  11. ls = map(str, ls)
  12.  
  13. print(''.join(list(ls)))
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