Write a comment `# Data for Class A\n` to a file object `f`,f.write('# Data for Class A\n')