>>> from time import sleep >>> print('abcd'); sleep(1) abcd >>> print('abcd', end=''); sleep(1) abcd>>> >>> for z in 'abcd': ... print(z) ... a b c d >>> for z in 'abcd': ... print(z) ... sleep(1) ... a b c d # Tohle musíte pustit interaktivně, abyste viděli, co to dělá: >>> for z in 'abcd': ... print(z, end='') ... sleep(1) ... abcd>>> >>> for z in 'abcd': ... print(z, end='', flush=True) ... sleep(1) ... abcd>>> >>> print('ahoj\b\b\bH') aHoj >>> print('ahoj\rH') Hhoj >>>