Skip to content

Commit 433e730

Browse files
committed
little fixes
1 parent a708007 commit 433e730

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

defining-functions.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,8 @@ So far our functions seem to be really isolated from the rest of our
182182
code, and it sucks! But they really are not as isolated as you might
183183
think they are.
184184

185-
Let's think about what the built-in function input does. It takes an
186-
argument, and returns a value. Maybe a custom function could do that
187-
also?
185+
Let's think about what the print function does. It takes an argument
186+
and prints it. Maybe a custom function could also take an argument?
188187

189188
```py
190189
>>> def print_twice(message):
@@ -312,7 +311,7 @@ print_box("Hello World", "*")
312311
```
313312

314313
But we don't need to change our existing code. We can make the second
315-
argument **optional** by giving it a **default value**.
314+
argument **optional** by giving it a default value.
316315

317316
```py
318317
def print_box(message, character='*'):
@@ -438,9 +437,7 @@ functions.
438437
and all the exercises because you didn't know how to define
439438
functions. Read those parts now, and do the exercises.
440439

441-
442-
443-
5. Use a search engine (e.g. Google) to find more exercises about
440+
4. Use a search engine (e.g. Google) to find more exercises about
444441
defining functions.
445442

446443
Answers for the first and second exercise are [here](answers.md).

0 commit comments

Comments
 (0)