Skip to content

Commit ee0bda9

Browse files
committed
get rid of the old lists.md
1 parent b3abff7 commit ee0bda9

3 files changed

Lines changed: 19 additions & 116 deletions

File tree

defining-functions.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -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
481483
learn everything at once.** However, there's also lots of free Python
482484
exercises about defining functions you can do. Do many of them and
483485
spend 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

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

lists.md

Lines changed: 0 additions & 96 deletions
This file was deleted.

variables.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ need to keep in mind:
6363
- Multiple variables can point to the same value, but one variable
6464
cannot point to multiple values.
6565
- The values that variables point to can point to other values also.
66-
We'll learn more about that when we'll talk about [lists](lists.md).
66+
We'll learn more about that when we'll talk about
67+
[lists](lists-and-tuples.md).
6768

6869
Variables are an important part of most programming languages, and they
6970
allow programmers to write much larger programs than they could write

0 commit comments

Comments
 (0)