File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -182,9 +182,8 @@ So far our functions seem to be really isolated from the rest of our
182182code, and it sucks! But they really are not as isolated as you might
183183think 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
314313But 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
318317def 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
446443Answers for the first and second exercise are [here](answers.md).
You can’t perform that action at this time.
0 commit comments