CS Tutor
Home
Saturdays
Sundays
Playground
Tutor
← Back to Functions
How Function Calls Work
Step through code to see how Python jumps into functions and returns back
How Function Calls Work
Basic Function Call
Return Value
Two Function Calls
1
def
greet(name):
2
print
(
f"Hi {name}!"
)
3
print
(
"Welcome!"
)
5
print
(
"Start"
)
6
greet(
"Alex"
)
7
print
(
"Done"
)
Back
▶ Play
Step
Ready
What's Happening
Press Play or Step to begin
Output
No output yet
Legend
Running this line
Jumping into function
Returning from function