Matrix -Implementierung

import random
m = input("Enter No. of rows in the matrix: ")
n = input("Enter No. of columns in the matrix: ")
a = [[random.random() for col in range(n)] for row in range(m)]
print "Enter elements: "
for i in range(m):
    for j in range(n):
        a[i][j] = input()
print "output is"
for i in range(m):
 for j in range(n):
    print a[i][j], '\t',
 print
AMBIKESH SINGH