For what value of n would g(637,n) return 4? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

For what value of n would g(637,n) return 4?

def g(m,n): res=0 while m>=n: (res,m)=(res+1,m/n) return(res)

1st Feb 2020, 10:20 AM
Roopam Maurya
Roopam Maurya - avatar
2 Answers
0
Can you please edit your question? There are several mistakes in that code: Indentation wrong, colon missing...
1st Feb 2020, 10:40 AM
HonFu
HonFu - avatar
0
HonFu now can u do it?
1st Feb 2020, 11:09 AM
Roopam Maurya
Roopam Maurya - avatar