We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fdcc8a commit 2fc660aCopy full SHA for 2fc660a
1 file changed
defining-functions.md
@@ -199,6 +199,10 @@ and prints it. Maybe a custom function could also take an argument?
199
>>>
200
```
201
202
+Here `message` is an argument. When we call the function we'll get a
203
+local variable called message that will point to whatever we passed
204
+to `print_twice`.
205
+
206
This function can be called in two ways:
207
208
- Using a **positional argument**.
@@ -213,6 +217,9 @@ This function can be called in two ways:
213
217
214
218
215
219
220
+ When the function was running it had a local `message` variable
221
+ that pointed to `"hi"`. The function printed it twice.
222
216
223
Positional arguments are great for simple things, but if your
224
function takes many positional arguments it may be hard to tell
225
which argument is which.
0 commit comments