I'm trying to run this code in python 3 it only works in python 2
struct.unpack('f', "".join(map(chr, bytes)))[0]
def get_float(data, index):
bytes = data[4*index:(index+1)*4]
return struct.unpack('f', "".join(map(chr, bytes)))[0]
I get this error
Type Error: a byte like object is required, not 'str"