I want to store elements in a csv file using loops, for example,
for i in range(0,10):
#I want to append each i values in new rows of that csv file.
The output final csv file with look like,
0
1
2
3
4
5
7
8
9
How to do it in efficient way ?