python 3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

python 3

What is the value of h(231,8) for the function below? def h(m,n): ans = 0 while (m >= n): (ans,m) = (ans+1,m-n) return(ans)

19th Aug 2018, 11:12 AM
Akash Takalkar
1 Answer
+ 4
it does exactly the same as int(231/8) 28
19th Aug 2018, 11:23 AM
Louis
Louis - avatar