Pythonic python -- looping over lists

Have you noticed that this topic is over nine months old? Please keep the dead resting!

Read the FAQ before you post again. You need to learn how to format your code properly. I’ve done it for you this time, but I won’t always be here.

Line 4: self.findNearest( golds )? There isn’t a variable named golds.