create map between binary and its equivalent octal code
bin_oct_map = dict ( ) NEW_LINE bin_oct_map [ "000" ] = '0' NEW_LINE bin_oct_map [ "001" ] = '1' NEW_LINE bin_oct_map [ "010" ] = '2' NEW_LINE bin_oct_map [ "011" ] = '3' NEW_LINE bin_oct_map [ "100" ] = '4' NEW_LINE bin_oct_map [ "101" ] = '5' NEW_LINE bin_oct_map [ "110" ] = '6' NEW_LINE bin_oct_map [ "111" ] = '7' NEW_LINE i = 0 NEW_LINE octal = " " NEW_LINE while ( True ) : NEW_LINE