Answer to Question #157937 in Python for Prathi

Question #157937
   For what value of n would g(57,n) return 7?
def g(m,n):
    res = 0
    while m >= n:
        res = res+1
        m = m-n
    return(res)  
    





1
Expert's answer
2021-01-24T11:09:46-0500

"n=8,g(57,8)=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 the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS