Saved Bookmarks
| 1. |
What will be written inside the file test.csv using the following program import csvD = [[‘Exam’],[‘Quarterly’],[‘Halfyearly’]] csv.register_dialect(‘M’ ,lineterminator = ‘\n’)with open(‘c:\pyprg\chl3\line2.csv’ , ‘w’) as f:wr = csv.writer(f,dialect= ’M’)wr.writerows(D)f.close( )(a) Exam Quarterly Halfyearly(b) Exam Quarterly Halfyearly(c) Q H(d) Exam, Quarterly, Halfearly |
|
Answer» (d) Exam, Quarterly, Halfearly |
|