(Python)

Define and call a function called perfectSum that when given a parameter n, which is a number, it will sum up all of the perfect squares that are less than or equal to the number and return it

Output:

The sum of the perfect squares up to 0 is 0

The sim of the perfect squares up to 1 is 1

The sum of the perfect squares up to 9 is 14