python binary remove 0b

Solutions on MaxInterview for python binary remove 0b by the best coders in the world

showing results for - "python binary remove 0b"
Myrtle
26 Apr 2016
1a = bin(17)
2b = bin(17)[2:]
3
4#to format to 8-bits
5c = b.zfill(8)