function to create map between binary number and its equivalent octal
def createMap ( bin_oct_map ) : NEW_LINE INDENT 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 DEDENT