Last answered:

04 Oct 2019

Posted on:

04 Oct 2019

0

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)
Instructor
Posted on:

04 Oct 2019

0
Hello, Amar!   Great to have you in the course and thanks for reaching out!   The syntax for doing that in Python 3 is:   print (n, end = ', ')   Hope this helps. Best,
365 Team

Submit an answer