1# sep is between each item. empty string disables it.
2print('hello', 'world', sep='')
3##helloworld
4
5# end is placed at the end of the statement. defaults to '\n' (line break)
6print('The first sentence', end='. ')
7print('The second sentence', end='. ')
8##The first sentence. The second sentence.
9
10# file allows you to change where it sends the data
11with open('file.txt', mode='w') as file_object:
12 print('hello world', file=file_object)
13## this would print "hello world" to a file named "file.txt"
14# note: you can't use print for anything that isn't a character.
15
16# use flush to disable buffering:
17print(countdown, end='...', flush=True)