← Back to Functions

How Function Calls Work

Step through code to see how Python jumps into functions and returns back

How Function Calls Work

1def greet(name):
2print(f"Hi {name}!")
3print("Welcome!")
5print("Start")
6greet("Alex")
7print("Done")
Ready

What's Happening

Press Play or Step to begin

Output

No output yet

Legend

Running this line
Jumping into function
Returning from function