What will be written inside the file test.csv
using the following program import csv
D = [['Exam'],['Quarterly'],['Halfyearly']]
csv.register_dialect('M',lineterminator = '\n')
with open('c:\pyprg\ch13\line2.csv', 'w') as f:
wr = csv.writer(f,dialect='M')
wr.writerows(D)
f.close()
Read the statements given below. Identify the
right option from the following for pie chart.
Statement A: To make a pie chart with
Matplotlib, we can use the plt.pie() function.
Statement B: The autopct parameter allows us to
display the percentage value using the Python string formatting.
Which punctuation should be used in the blank?
if <condition>_
statements-block 1
else:
statements-block 2