Avatar ·

Output in one line from different Print in Python

📁 function, string, Advanced Python Topics

I need to make the function print() written in the same way:

 print('a')
print('b')
print('c')

produce something like:

> C:\Users\User\Documents> python test.py
abc

should be displayed in one line, but print() in the code is on different lines!
I will be very glad if someone can help.