[LUNA] Python question

Chris Brightwell chris at dimwell.net
Mon Oct 17 21:01:32 CDT 2016


Did you try googling the error?

> On Oct 17, 2016, at 8:47 PM, Michael W. Hall <hallmw at att.net> wrote:
> 
> Trying to help a friend.  I am getting an error on the following
> program.
> 
> global golf{}
> name = ""
> while name != 1:
>    name = input("Golfer's name? ")
>    score = input("Golfer's score? ")
>    golf[name]=score
> 
> file = open("","w")
> 
> for key in golf:
>    file.write(key, gofl[key])
> 
> file.close()
> 
> golf is supposed to be a dictionary, but I am getting an error on the
> first line.
> 
> Any ideas?
> _______________________________________________
> LUNA mailing list
> LUNA at lunagroup.us
> http://lunagroup.us/mailman/listinfo/luna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lunagroup.us/pipermail/luna/attachments/20161017/e793e5c2/attachment.html>


More information about the LUNA mailing list