Skip to content

Commit 6aff76f

Browse files
committed
stuffs
1 parent df1066c commit 6aff76f

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
# Python programming tutorial
22

3-
This is a Python 3 programming tutorial for beginners. If you have never
4-
programmed before click [here](basics/what-is-programming.md) to find
5-
out what programming is like and get started.
3+
This is a concise Python 3 programming tutorial for people who think
4+
that reading is boring. I try to show everything with simple code
5+
examples; there are no long and complicated explanations with fancy
6+
words. If you have never programmed before click
7+
[here](basics/what-is-programming.md) to find out what programming is
8+
like and get started.
69

710
This tutorial is aimed at people with no programming experience at all
811
or very little programming experience. If you have programmed a lot in
912
the past using some other language you may want to read [the official
1013
tutorial](https://docs.python.org/3/tutorial/) instead.
1114

12-
You can use Python 3.2 or any newer Python with this tutorial. Don't use
13-
Python 2. If you write a Python 2 program now someone will need to port
14-
it to Python 3 later, so it's best to just write Python 3 to begin with.
15-
Python 3 code will work just fine in Python 4, so you don't need to
16-
worry about that.
15+
You can use Python 3.3 or any newer Python with this tutorial. **Don't
16+
use Python 2.** If you write a Python 2 program now someone will need to
17+
convert it to Python 3 later, so it's best to just write Python 3 to
18+
begin with. Python 3 code will work just fine in Python 4, so you don't
19+
need to worry about that. Python 2 also has horrible
20+
[Unicode](http://www.unicode.org/standard/WhatIsUnicode.html) problems,
21+
so it's difficult to write Python 2 code that works correctly with
22+
non-English characters (like π and ♫).
1723

1824
## List of contents
1925

basics/lists-and-tuples.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,6 @@ like this:
230230

231231
![Different lists.](../images/differentlist.png)
232232

233-
If you're using Python 3.2 or older you need to do `a[:]` instead
234-
of `a.copy()`. `a[:]` is a slice of the whole list, just like
235-
`a[0:]`.
236-
237233
## Tuples
238234

239235
Tuples are a lot like lists, but they're immutable so they

basics/loops.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,6 @@ Or if we just want to clear a list, we can use the `clear`
300300
>>>
301301
```
302302

303-
If you're using Python 3.2 or older you need to use `stuff[:]` instead
304-
of `stuff.copy()` and `stuff[:] = []` instead of `stuff.clear()`.
305-
`stuff[:]` is a slice of the whole list, just like `stuff[0:]`.
306-
307303
## Summary
308304

309305
- A loop means repeating something multiple times.

0 commit comments

Comments
 (0)