SyntaxFix
Write A Post
Hire A Developer
Questions
If the input is formatted like this,
1 2 3 4 5 6 7 8 9
a one liner can be used
mat = [list(map(int,input().split())) for i in range(row)]