Print in the same line using Python 3
Since I am using Python 3, I need to put parenthesis in my print function, and because of that, the function does not understand the comma as me asking it to print all result in one single line.
What should I do?
I've tried to put the comma both inside and outside the parenthesis, but it did not work.
1 answers ( 0 marked as helpful)
Hello, Amar!
Great to have you in the course and thanks for reaching out!
The syntax for doing that in Python 3 is:
365 Team
print (n, end = ', ')
Hope this helps.
Best,365 Team