def concati(s, i): """ Return a string that is s concatenated to itself i times. If i<1, the result is a null string. If i is a large value, may the lord have mercy on your soul. """ result="" for j in range(1, i+1): result=result + s return result n=5 for i in range(1, n+1): print concati("*", i)