$ 0 0 This is for python 3 and it keeps the leading zeros !print(format(0, '08b'))Image may be NSFW. Clik here to view.