Creating txt file
For our final module, we had to create a txt file for a list of coordinates. Despite being the final assignment, I found this to be oddly easy, primarily because the data was already given and the coding was easy.
The only error I came across that wasn't spelling related was on the line
with open(output_file, "w") as txt_file:
As I completely forgot to add the "w" and it took me quite a bit to realize what was missing. I also had some issues creating the txt file as it kept disappearing. Funny enough I was accidentally saving it to Module 5!
Here is a picture of some of the coordinates from the txt I created:
Comments
Post a Comment