one by one extract from left , substring of size 3 and add its octal code
octal += bin_oct_map [ bin [ i : i + 3 ] ] NEW_LINE i += 3 NEW_LINE if ( i == len ( bin ) ) : NEW_LINE INDENT break NEW_LINE DEDENT