separator in python code example

Example 1: python split string on char

>>> "MATCHES__STRING".split("__")
['MATCHES', 'STRING']

Example 2: python 2 print sep end

>>> from __future__ import print_function
>>> print('one', 'two', 'three', sep='')
onetwothree
#doesn't work for me, but still hope it might work for you :)

Example 3: sep in python

import time

def count_items(items):
    print('Counting ', end='', flush=True)
    num = 0
    for item in items:
        num += 1
        time.sleep(1)
        print('.', end='', flush=True)

    print(f'\nThere were {num} items')