Computer Science, asked by sara6847, 10 months ago

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)

Answers

Answered by biswashubhayan2001
8

Answer:

12

Explanation:

Answered by mariospartan
1

Answer:

12

Explanation:

The return function stops the working/compiling of a syntax or code and returns the control to the function which invoked the calling of the return function.

The compiling resumes in the invoking function at the time when the return code is invoked.

A return code can also call for the calling function at times if needed.

The return function is usually invokes with a “return () syntax”, the value inside bracket represents either true or false value of the return value asked for.

Similar questions