I attached the python script above.
I am trying to print out the information I need in to a csv. Whenever I attempt this, I get a TypeError: 'newline' is an invalid keyword argument for this function'. I am very new to python so I'm not sure how to address this (or if there are other issues in the script).
#print(teams)
with open('players.csv', 'w', newline='') as csvfile:
writer = csv.writer(csvfile, delimiter=',',
quotechar='|', quoting=csv.QUOTE_MINIMAL)
for row in teams:
writer.writerow(row)
, newline=''newlineis not a valid parameter to theopenfunction. What makes you think it is?newlineargument, you probably are using python 2