Make output of print to console identical to output to log

This code:

a = 'x'
b = 'y'
print(a, b)

outputs:

# on the console
x y

# on the log
x

y

The workaround is easy, but very annoying: print with one argument:

print(f'{a} {b}')
4 Likes