1>>> from __future__ import print_function
2>>> print('one', 'two', 'three', sep='')
3onetwothree
4#doesn't work for me, but still hope it might work for you :)
1import time
2
3def count_items(items):
4 print('Counting ', end='', flush=True)
5 num = 0
6 for item in items:
7 num += 1
8 time.sleep(1)
9 print('.', end='', flush=True)
10
11 print(f'\nThere were {num} items')
12