+ 2

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 Réponses
+ 1
HonFu now can u do it?
1st Feb 2020, 11:09 AM
Roopam Maurya
Roopam Maurya - avatar
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