Answer to Question #158048 in Python for Sujit Sharma

Question #158048

What is the value of f(846) for the function below?

def f(x):
    d=0
    y=1
    while y <= x:
        d=d+1
        y=y*3
    return(d)
1
Expert's answer
2021-01-24T16:38:26-0500

Answer. 7.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS