outfile = open('eat-me.ly', 'w') print('{ c\'4 }', file=outfile)