Python print into file without trailing line code example Example: python print without new lines print('Foo', end='')