I tried defining a function and keep on getting a "NameError: name "curr" is not defined" syntax
# MY CODEdef loadData(filename): hlist = [] fileobj = open(filename, 'r') for line in fileobj: line_s = line.strip() ints = [float(x) for x in line_s.split(',')] hlist.append(ints) fileobj.close() return curr
# ERRORFile "heat.py", line 22, in load Data return currNameError: name 'curr' is not defined