def hi(row, col): return [['hi' for i in xrange(row)] for j in xrange(col)]

a = hi(3, 3)

for row in a:
    print row