Guest User

Untitled

a guest
Nov 20th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. def dec2bin(tal):
  2. lol = []; tal = int(tal)
  3. while tal>0:
  4. lol.insert(0,tal%2)
  5. tal,n = tal/2 , tal%2
  6. print lol
  7. dec2bin(input("Indtast tal:"))
Add Comment
Please, Sign In to add comment