1 | initial version |
One solution would be to use a single input
for a number of entries.
The user would enter inputs separated by spaces.
Then you would split the resulting string according to spaces.
Something like:
sage: s = 'ABCD BCDA BCAD DACB: '
sage: M = input(s).split()
ABCD BCDA BCAD DACB: 7 8 0 3
sage: M
['7', '8', '0', '3']