Friday, 18 November 2016

Next line in Python 2.x and Python 3.x :-

What is the output of in Python 2.x :- 

print 1,
print 2  
Its   1 2

How to do this in 3.x version :--

Its simple :-
print(1,end=' ')
print(2)

No comments:

Post a Comment