I am a beginner, writing a python script in which I need it to create a file that I can write information to. However, I am having problems getting it to create a new, not previously existing file.
for example, I have:
file = open(coordinates.kml, 'w') which it proceeds to tell me:
nameerror: name 'coordinates' is not defined. Of course it isn't defined, I'm trying to make that file. Everything I read on creating a new file says to take this route, but it simply will not allow me. What am I doing wrong?
I even tried to flat out define it...
file = coordinates.kml file_open = open(file, 'w') ... and essentially got the same result.