for i in range(1,10): mylist = []; for k in range(i,10): pass sum = i * k; mylist.append(str(i) + " X " + str(k) + " = " + str(sum))
print(mylist)
for i in range(1,10): mylist = []; for k in range(i,10): pass sum = i * k; mylist.append(str(i) + " X " + str(k) + " = " + str(sum))