KwickClips Python · 41 sec · free
What does writerows() take?
Short answer. A list of lists.
What does writerow() take?
One list, for one row.
Remember
| writerow: one list, one row |
| writerows: list of lists |
One letter s changes what the csv writer does. Which? The writer is called w. Writerow takes one list for one row. Writerows takes a list of lists. Writerow: one list, one row. Writerows: a list of lists.
This clip is from the full lesson: CSV Files with the csv Module — 6 minutes, with the tables, the quick answers and the whole lesson in text.
Useful for: CBSE Class 12 Computer Science (083), CBSE Class 12 Computer Science (083), CBSE Class 11 Artificial Intelligence (843), Programming All levels Python
More KwickClips from this lesson
What does CSV stand for?38 sec
Is 88 read from a CSV a number?38 sec
Why is there a blank row after every CSV row?42 secVoice-over is AI-generated; the script is written and checked by Kajal Ma'am. Confirm anything you plan around against your official board document. We never ask for a password or an OTP.

