@@ -477,12 +477,27 @@ print("Your favorite color is %s!" % choice)
477477
478478## Exercises
479479
480+ ** TODO:** more exercises.
481+
480482** There is a lot to learn about functions, and I don't expect you to
481483learn everything at once.** However, there's also lots of free Python
482484exercises about defining functions you can do. Do many of them and
483485spend time with them until you're familiar with defining functions.
484486
485- 1 . Python comes with many built-in functions. Some of the simplest ones
487+ 1 . The box printing function doesn't really print a box, it prints a
488+ message between two lines.
489+
490+ ************
491+ Hello World!
492+ ************
493+
494+ Modify it to print an actual box:
495+
496+ ****************
497+ * Hello World! *
498+ ****************
499+
500+ 2 . Python comes with many built-in functions. Some of the simplest ones
486501 are abs, all and any. They can be used like this:
487502
488503 - abs returns the absolute value of its only argument.
@@ -523,24 +538,7 @@ spend time with them until you're familiar with defining functions.
523538 other operating systems. Try the above examples with your
524539 functions.
525540
526- 2 . The box printing function doesn' t really print a box, it prints a
527- message between two lines.
528-
529- ************
530- Hello World!
531- ************
532-
533- Modify it to print an actual box:
534-
535- ****************
536- * Hello World! *
537- ****************
538-
539- 3 . Back in [Lists](lists.md), you needed to skip parts of the tutorial
540- and all the exercises because you didn' t know how to define
541- functions. Read those parts now, and do the exercises.
542-
543- 4 . Find more exercises about defining functions online.
541+ 2 . Find more exercises about defining functions online.
544542
545543Answers for the first and second exercise are [here](answers.md).
546544
0 commit comments