def timestables(number):
    lst = []
for a in range(1, number + 1):
    b = a * a
c = a
lst.append(str(c) + ' * ' + str(c) + ' = ' + str(b))
return lst
Function doesn't return all results from 'for' loop