def test(): for i in range(10): print 'hello' test()