1# Python 3
2print('Python', 3, 'Rocks', end=' ')
3print('I love Python')
4>>> Python 3 Rocks I love Python
1# Python 3
2outputFile1 = open('text.txt', 'w')
3outputFile2 = open('text2.txt'. 'w')
4
5print('Hello World', file=outputFile1)
6print('Hello World 2', file=outputFile2)