I am trying to figure out how to find the square root for an unknown variable using a for loop. the prompt I was given is: So if we passed in 3, you would output 0^2+1^2+2^2+3^2=14
this is for my intro to scripting class, and I am just at a compete loss.
sum((n+1)**2 for i in range(n))wheren = 3for your case