Advertisement
MichalCzEJ

Untitled

Nov 6th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import operator
  2.  
  3. text = (input())
  4. list1 = []
  5.  
  6. for x in text:
  7. list1.append(ord(x))
  8.  
  9. print(list1)
  10. lenght=len(list1)
  11. print(lenght)
  12. x=[]
  13. y=0
  14. for i in list1:
  15. x.append(bin(list1[y])[2:].zfill(8))
  16. y=y+1
  17. print(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement