i = 0 j = 0 a = "" while i < 50: while j < random.randint(1,30): a = a + "*" j = j + 1 print a a = "" j = 0 i = i + 1 print "Im done!"