Heads up! In the previous video we added a parameter newline='' to the csv.writer(). But instead, we should add it to our open statement like this:
newline=''
csv.writer()
open
with open('database.csv', newline='', mode='a') as database2:
You can learn more about it here.