Quantcast
Viewing all articles
Browse latest Browse all 14215

How do i define curr and remove the error [closed]

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

Viewing all articles
Browse latest Browse all 14215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>