python-by-example-150-chall.../challenges111-117/challenge-111.py
2019-08-04 15:26:35 +03:00

6 lines
387 B
Python

with open('Books.csv', 'w') as file:
file.write('To Kill A Mockingbird' + ', ' + 'Harper Lee' + ', ' + '1960\n')
file.write('A Brief History of Time' + ', ' + 'Stephan Hawking' + ', ' + '1988\n')
file.write('The Man Who Mistook His Wife for a Hat' + ', ' + 'F.Scott Fitzerald' + ', ' + '1922\n')
file.write('Pride and Prejudice' + ', ' + 'Jane Austen' + ', ' + '1813\n')