0

How to take input along a column in python

2D vector addition in form of matrix I want two inputs on first line and two on second then print it's sum , a class must be used

14th Jul 2018, 3:05 AM
Harsh Ris
Harsh Ris - avatar
1 Réponse
+ 2
For small arrays you can do it like this: https://code.sololearn.com/ceNYYC1thqE6/?ref=app For larger, you could do it iteratively, in a loop. Of course, then a sort of a row-by-row input validation would be a good idea ;)
14th Jul 2018, 6:59 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar