| 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']
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.