<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div style="direction: inherit;">Did you try googling the error?</div><div><br>On Oct 17, 2016, at 8:47 PM, Michael W. Hall <<a href="mailto:hallmw@att.net">hallmw@att.net</a>> wrote:<br><br></div><blockquote type="cite"><div><span>Trying to help a friend. I am getting an error on the following</span><br><span>program.</span><br><span></span><br><span>global golf{}</span><br><span>name = ""</span><br><span>while name != 1:</span><br><span> name = input("Golfer's name? ")</span><br><span> score = input("Golfer's score? ")</span><br><span> golf[name]=score</span><br><span></span><br><span>file = open("","w")</span><br><span></span><br><span>for key in golf:</span><br><span> file.write(key, gofl[key])</span><br><span></span><br><span>file.close()</span><br><span></span><br><span>golf is supposed to be a dictionary, but I am getting an error on the</span><br><span>first line.</span><br><span></span><br><span>Any ideas?</span><br><span>_______________________________________________</span><br><span>LUNA mailing list</span><br><span><a href="mailto:LUNA@lunagroup.us">LUNA@lunagroup.us</a></span><br><span><a href="http://lunagroup.us/mailman/listinfo/luna">http://lunagroup.us/mailman/listinfo/luna</a></span><br></div></blockquote></body></html>