I am new to python and trying to create a function for the sum of squares between 1 and n. I've tried
def squared(x, n):
tot = sum(x ** 2 for x in range (1, n+1))
return tot
when I then try to check using
print(squared([1.2, 2.3]))
I get type error
squared() missing 1 required positional argument: 'n'