import sys for i in xrange(5): for j in xrange(i+1): sys.stdout.write("*") print