To complete this function, you'll have to make sure your function accepts a float.
Use typecasting for the variables. You can use for example:
for a in range(1, int(number)+1):
I hope this will help.
On one of the unlock door things in "CEED-Universe" it says
# if what follows an 'if' evaluates to True, the indented code below will run
but when I type in
if a_bool == True
it gives me a syntax error pointing at the e in true,
Please tell me what I am doing wrong.
Hey i am also stuck on this code, i used your suggestion but it still doesnt let me pass, could i see what you did?
"""Finish the function pi_approx which accepts a float n as an input.The function should sum n reciprocal-squares i.e 1/(1**2) + 1/(2**2) + ... + 1/(n**2). Then your function should multiply this result by six and square root it. math.sqrt(x) returns the square root of x """ Thanks
Adam- I am stuck on the same code that you posted in the thread, the pi_approx function. What was your solution? Thanks.