🧩Function Call
Also known as Calling a Function, Invoke
The line that runs a function. You write its name, then brackets, like greet("Emma").
Think of it like
Think of it like ringing a pizza shop. You say what you want, wait, and the pizza comes back to you.
Example
Jack's game calls play_sound("coin") every time the player picks up a coin. The same function runs 40 times in one level.
Why it matters
Definition
Example code
python
>>> len("Jack")
4Common mistake
Key takeaways
- 1Name plus brackets. The brackets are what make it run.
- 2Jump and come back. The program returns to the same line.
- 3Works out to the result. The call takes the returned value.