I am writing a function that has two parameters F & L and the function returns the sum of the squares of all the intergers between F & L
e.g if i call def sum(3,5) should output 50 (9 + 16 + 25)
def sum(first,last) :
sqaure = 0
for i in range(first,las t + 1)
this is my program code at the moment what am I missing?
e.g if i call def sum(3,5) should output 50 (9 + 16 + 25)
def sum(first,last) :
sqaure = 0
for i in range(first,las t + 1)
this is my program code at the moment what am I missing?
Comment