Riju21

25_random_prac

Mar 29th, 2019
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. import random
  2.  
  3. n1 = 100
  4. my_set = []
  5. for i in range(1, n1 + 1):
  6.     my_set.append(i)
  7.  
  8. for i in my_set:
  9.     result = "{0:b}".format(i)
  10.     print('actual number: ', i,' , binary:', result)
Add Comment
Please, Sign In to add comment