You are viewing a single comment's thread. Return to all comments →
What I mean to say is use print "whatever you need to print" ,
Here last comma means it would not change the line after printing. For eg if I write
print 1, print 5 Output in Python 2.7 would be 1 5 and for the same thing in Python 3.0 you need to print it like
print(1,end=' ') print(5)
Seems like cookies are disabled on this browser, please enable them to open this website
Tree: Preorder Traversal
You are viewing a single comment's thread. Return to all comments →
What I mean to say is use print "whatever you need to print" ,
Here last comma means it would not change the line after printing. For eg if I write
print 1, print 5 Output in Python 2.7 would be 1 5 and for the same thing in Python 3.0 you need to print it like
print(1,end=' ') print(5)