+ 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
2 Réponses
+ 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
0
Yeah, i meant the same thing sylar