Hello Cathy, I had the same issue, turn out that it is the blank line that is getting inserted after appending to the CSV. Use the following code (assuming you are using python3):

with open('.data/places.csv', mode='a', newline='') as csv_file:

instead of

with open('.data/places.csv', mode='a') as csv_file:

Best of Luck!

--

--

--

Software Developer having keen interest in Security, Privacy and Pen-testing. Certs:- Security+,PenTest+,AZ900

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
0xsanz

0xsanz

Software Developer having keen interest in Security, Privacy and Pen-testing. Certs:- Security+,PenTest+,AZ900

More from Medium

The Baltimore Stockbroker

Imposter Syndrome, a Trial by Fire and Why Maybe None of It Really Even Matters

Senda: ancient wisdom — new spirit (part 2/2 : the research)

Renault Koleos Wiring Diagram