how to not print elements on new line in python code example Example: python print without new lines print('Foo', end='')