how to print in same line in a loop in python code example Example: python print without new lines print('Foo', end='')