fork download
  1. def hi(row, col): return [['hi' for i in xrange(row)] for j in xrange(col)]
  2.  
  3. a = hi(3, 3)
  4.  
  5. for row in a:
  6. print row
Success #stdin #stdout 0.03s 6356KB
stdin
Standard input is empty
stdout
['hi', 'hi', 'hi']
['hi', 'hi', 'hi']
['hi', 'hi', 'hi']