Answer to Question #156995 in Python for Narendra

Question #156995

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-21T07:33:36-0500

n value should be 8 in order to g(57,n) returns 7..

Function g works as Euclidean division..


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