how to print without newline in python 3 code example Example: python print without new lines print('Foo', end='')