fork download
  1. def f(x,y):a="="*(4*y+1);print(a+"\n="+" ="*y+"\n")*x+a
  2.  
  3. def test(x, y):
  4. print 'x='+str(x)+', y='+str(y)
  5. print '---------------'
  6. f(x,y)
  7. print '---------------'
  8.  
  9. test(1,1)
  10. test(1,2)
  11. test(2,2)
  12. test(2,5)
  13. test(9,9)
Success #stdin #stdout 0.01s 7736KB
stdin
Standard input is empty
stdout
x=1, y=1
---------------
=====
=   =
=====
---------------
x=1, y=2
---------------
=========
=   =   =
=========
---------------
x=2, y=2
---------------
=========
=   =   =
=========
=   =   =
=========
---------------
x=2, y=5
---------------
=====================
=   =   =   =   =   =
=====================
=   =   =   =   =   =
=====================
---------------
x=9, y=9
---------------
=====================================
=   =   =   =   =   =   =   =   =   =
=====================================
=   =   =   =   =   =   =   =   =   =
=====================================
=   =   =   =   =   =   =   =   =   =
=====================================
=   =   =   =   =   =   =   =   =   =
=====================================
=   =   =   =   =   =   =   =   =   =
=====================================
=   =   =   =   =   =   =   =   =   =
=====================================
=   =   =   =   =   =   =   =   =   =
=====================================
=   =   =   =   =   =   =   =   =   =
=====================================
=   =   =   =   =   =   =   =   =   =
=====================================
---------------