realpython/python-basics-exercises

Page 377

HoshyarKarimi opened this issue · 0 comments

>>> file = file_path.open(mode="w", encoding="utf-8")
Now create a new CSV writer object by passing the file object file to csv.writer():
>>> writer = csv.writer()
You did not passed the file created earlier and running the code by just looking to the code provided, results in error:
TypeError: expected at least 1 argument, got 0