What is the value of f(3456) for the function below?
def f(x):
d=0
while x >= 1:
(x,d) = (x/7,d+1)
return(d)
def f(x): d = 0 while x >= 1: (x, d) = (x / 7, d + 1) return d print(f(3456)) # 5
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment