How to create a matrix without numPy in Python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to create a matrix without numPy in Python?

Hello everyone. Am trying to create a matrix without each columns and lines arranged as well : 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 and all without numPy... with my code I only managed to have this: [[0.00, 0.00, 0.00] , [0.00, 0.00, etc.. If someone can help me, it would ne nice. Thank you.

30th Nov 2018, 7:06 PM
Siyam
Siyam - avatar
3 Answers
+ 2
Alternatively: for row in arr: print(*row) (Python's so funny ^^)
30th Nov 2018, 10:29 PM
HonFu
HonFu - avatar
+ 1
for row in arr: print(row)
30th Nov 2018, 7:41 PM
HonFu
HonFu - avatar
0
thank you very much for your hell
3rd Dec 2018, 11:03 AM
Siyam
Siyam - avatar