Hi. I'm new to Python. I'm using Python 2.4.
I have a program where my print statement is inside of my while loop.
This means that my output prints out in a ... line ... well, it prints out like this:
1
1
2
3
5
I was wondering if anyone had any tips on printing it out onto a single line. Something easy for my brand-new-to-programming mind to understand.
Instead of what is above, I would like my output to look like this:
1, 1, 2, 3, 5
Thanks.
I have a program where my print statement is inside of my while loop.
This means that my output prints out in a ... line ... well, it prints out like this:
1
1
2
3
5
I was wondering if anyone had any tips on printing it out onto a single line. Something easy for my brand-new-to-programming mind to understand.
Instead of what is above, I would like my output to look like this:
1, 1, 2, 3, 5
Thanks.
