+ 1

How do we print things in a same line or in a matrix form in python, the same thing which we do using print() method in java?

State an example by printing a matrix

16th Feb 2018, 12:46 PM
Sachindra mishra
Sachindra mishra - avatar
2 ответов
+ 2
You mean same line i.e no new line? If so, use arguments of print function: eg. print('Spam', end = ' ') print('Eggs') Output: Spam Eggs
16th Feb 2018, 1:05 PM
Sylar
0
Yeah, i meant the same thing sylar
16th Feb 2018, 2:46 PM
Sachindra mishra
Sachindra mishra - avatar