Sunday, January 24, 2016

Python: Print in the same line

During my learning days i was getting troubles to print values in the same line.
To overcome this see the below code:
for s in res:
    print s,// This comma is used to print anything in the same line.
Isn't it simple? try it out...

No comments:

Post a Comment