slicing

Slice a binary number into groups of five digits

Is there any neat trick to slice a binary number into groups of five digits in python? '00010100011011101101110100010111' => ['00010', '00110', '10111', ... ] Edit: I want to write a cipher/encoder in order to generate "easy to read over the phone" tokens. The standard base32 encoding has the following disadvantages: Potential to gen...