Give example to understand operator precedence available in Python programming languag
Answers
Answered by
4
def piApprox(num):
i = 1
pi = 0
while i<=num:
#set ‘while’ termination condition
pi +=((4/float(2*i-l)n-l)**(i+l))
#compute the ith term of the series
i+=l # update i
return pi
Similar questions