n=input("r")
m=input("c")
l=range(m*n)
for r in range(m):
    for c in range(n):
        l[r][c]=input(" enter no")
for r in range(m):
    for c in range(n):
        print[r][c]
    print
i thought of practicing matrix questions but when i ran my matrix coding in python it gave an error
Traceback (most recent call last):
  File "D:/WORK/Python 2.7/matrix1", line 6, in <module>
    l[r][c]=input(" enter no")
TypeError: 'int' object does not support item assignment
i m new and a student please help explain simply please i really need to understand it
 
     
     
     
    