Menu

[solved] – Question 92389

What does h(3231) return for the following function definition?

def h(x):
(m,a) = (1,0)
while m <= x:
(m,a) = (m*2,a+1)
return(a)

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *