QuestionQ89

VerifiedFunctions and Exceptions

What result is expected when the following code is run?

Question Image

Explanation

range(2, 3) produces the value 2, so the list is [2]. The function uses the global variable and increments it by parameter[0]; therefore, it changes from 0 to 2, which is printed.

Community Discussion

No comments yet. Be the first to start the discussion!