Skip to content

Commit 7a5b49c

Browse files
committed
add my stuff
1 parent 45fae1f commit 7a5b49c

13 files changed

Lines changed: 73 additions & 25 deletions

TODO.md

Lines changed: 61 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,62 @@
1-
# Things that are not in the tutorial yet
1+
# Stuff that will (hopefully) be added to this tutorial
22

3-
- Reading and writing files.
4-
- Exceptions.
5-
- Custom classes part 2. Inheritance, multiple inheritance, diamond
6-
diagrams, custom exceptions.
3+
This tutorial is not complete. It still needs:
4+
5+
- Dictionaries and tuples (can be in the same thing since tuples
6+
are needed for dict keys)
7+
- Explain `for a, b in thing` somewhere
8+
- **More exercises and examples everywhere!**
9+
- reading and writing files
10+
- first of all: what are files, directories/folders and paths
11+
- print(..., file=thefile), not thefile.write(...)
12+
- show how to iterate over the file and .read() it
13+
- why .rstrip('\n') instead of .strip()
14+
- files remember their position, reading the same file object twice
15+
- modules
16+
- just files and folders, have a look at Python's lib directory
17+
- "batteries included" filosofy
18+
- briefly introduce some of the most commonly used standard library
19+
modules:
20+
- math
21+
- it's not a file, what is it?
22+
- sys
23+
- sys.exit() vs exit()
24+
- time
25+
- os, os.path, subprocess
26+
- random
27+
- webbrowser
28+
- explain even more briefly and link to documentation/tutorials:
29+
- configparser
30+
- textwrap
31+
- collections, itertools, functools
32+
- traceback
33+
- types
34+
- warnings
35+
- json
36+
- link to third party modules:
37+
- appdirs
38+
- requests
39+
- Exceptions
40+
- explain bool(x) and why it matters
41+
- classes part 2
42+
- non-public `_variables`
43+
- singular inheritance, inheritance of built-in classes
44+
- using super
45+
- quick overview of some of the most useful built-in functions and classes
46+
- range
47+
- zip
48+
- classmethod and staticmethod
49+
- iterables and iterators: something most Python programmers need to be aware of
50+
- classes part 3: multiple inheritance
51+
- an advanced thing
52+
- built-in classes don't use it
53+
- diamond diagrams, why to use super()
54+
- last chapter: "What should I do now?" links to other resources
55+
- GUI programming tutorials
56+
- easygui
57+
- tkinter in effbot (warn the readers about star imports)
58+
- pyqt5 in zetcode
59+
- gtk+ 3 in readthedocs
60+
- a pygame tutorial
61+
- David Beazley's metaprogramming and other talks
62+
- a regex tutorial

defining-functions.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,3 +469,9 @@ functions.
469469
defining functions.
470470

471471
Answers for the first and second exercise are [here](answers.md).
472+
473+
***
474+
475+
You may use this tutorial freely at your own risk. See [LICENSE](LICENSE).
476+
477+
[Back to the list of contents](README.md)

getting-started.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,4 @@ Powers are calculated before `*` and `/`, but after `()`.
202202

203203
You may use this tutorial freely at your own risk. See [LICENSE](LICENSE).
204204

205-
[Previous](installing-python.md) |
206-
[Next](the-way-of-the-program.md) |
207205
[Back to the list of contents](README.md)

handy-stuff-strings.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,3 +301,9 @@ If you need to know more about formatting I recommend reading
301301
or `help(str)` when you don't rememeber something about them.
302302

303303
- String formatting means adding other things to the middle of a string.
304+
305+
***
306+
307+
You may use this tutorial freely at your own risk. See [LICENSE](LICENSE).
308+
309+
[Back to the list of contents](README.md)

if.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,4 @@ The answers are [here](answers.md).
281281

282282
You may use this tutorial freely at your own risk. See [LICENSE](LICENSE).
283283

284-
[Previous](using-functions.md) |
285-
[Next](lists.md) |
286284
[Back to the list of contents](README.md)

installing-python.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,4 @@ Now you should have Python installed, and you should be able run it.
105105

106106
You may use this tutorial freely at your own risk. See [LICENSE](LICENSE).
107107

108-
[Previous](introduction.md) |
109-
[Next](getting-started.md) |
110108
[Back to the list of contents](README.md)

introduction.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,4 @@ have learned, and create something with it.
4242

4343
You may use this tutorial freely at your own risk. See [LICENSE](LICENSE).
4444

45-
[Next](installing-python.md) |
4645
[Back to the list of contents](README.md)

lists.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,4 @@ we haven't talked about that yet.
9393

9494
You may use this tutorial freely at your own risk. See [LICENSE](LICENSE).
9595

96-
[Previous](if.md) |
97-
[Next](loops.md) |
9896
[Back to the list of contents](README.md)

loops.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,5 +264,4 @@ Or if you want to clear a list, just use the `.clear()` list method:
264264

265265
You may use this tutorial freely at your own risk. See [LICENSE](LICENSE).
266266

267-
[Previous](lists.md) |
268267
[Back to the list of contents](README.md)

the-way-of-the-program.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,4 @@ learned everything.
4040

4141
You may use this tutorial freely at your own risk. See [LICENSE](LICENSE).
4242

43-
[Previous](getting-started.md) |
44-
[Next](variables.md) |
4543
[Back to the list of contents](README.md)

0 commit comments

Comments
 (0)