Im working on a program which converts binary into integers (easy enough) however I then need to convert the integers back into 8bit binary representation. I have had a look, and I can do it mathematically, but I was wondering if there was a handy python function that did this?
            Asked
            
        
        
            Active
            
        
            Viewed 398 times
        
    0
            
            
        - 
                    possible duplicate of [Converting integer to binary in python](http://stackoverflow.com/questions/10411085/converting-integer-to-binary-in-python) – FrobberOfBits Apr 15 '14 at 17:58
1 Answers
2
             
    
    
        anon582847382
        
- 19,907
- 5
- 54
- 57
- 
                    Hi, this puts 0b at the beginning of the string, and it isn't in 8bit. is there a way to fix that? – Chris Headleand Apr 15 '14 at 17:59
- 
                    1Perfect, thanks... will accept in 7 mins when the software lets me! lol – Chris Headleand Apr 15 '14 at 18:04
- 
                    @ChrisHeadleand Good, glad to have been of assistance. Upvotes are also greatly appreciated if you haven't already. :) – anon582847382 Apr 15 '14 at 18:04
