fork download
  1. def hi_3x3(): return [['hi' for i in xrange(3)] for j in xrange(3)]
  2.  
  3. a = hi_3x3()
  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']