Why does calling is_even(3) show nothing until you print it — and how does the call vanish and leave its return value behind, like 3+2 becomes 5?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
Read this code and trace it by hand — do not run it:
def is_positive(n): return n > 0 is_positive(-5)
When Python reaches is_positive(-5), it runs the body and the whole call is replaced by a single True/False value. Assign that value to call_value (a real boolean, not the string "False").
The form of a call and its value
Write a call as the function name, parentheses and the expected inputs, and state that the whole call is replaced by the returned value, as 3 + 2 is replaced by 5.
Formal parameters versus actual arguments
Trace is_even(3) line by line: i maps to 3, the body evaluates 3 % 2 == 0 to False, return exits at once, and the call becomes False.
A bare call produces no visible output
Record that running is_even(3) on its own shows nothing, then write print(is_even(3)), the print(False) it reduces to, and the console line it produces.