Skip to content

Commit 6449a09

Browse files
committed
add a narrative to the README
1 parent 158182a commit 6449a09

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,38 @@
11
## Python 2.7 Quick Reference
2+
3+
This is the [reference guide to Python](reference.py) that I wish had existed when I was learning the language.
4+
5+
Here's what I want in a reference guide:
6+
7+
- High-quality examples that show the simplest possible usage of a given feature
8+
- Explanatory comments, and descriptive variable names that eliminate the need for some comments
9+
- Presented as a single Python script, so that I can keep it open in my IDE and search it when needed
10+
- Code that can be run from top to bottom, with the relevant objects defined nearby
11+
12+
This is not written as a full-fledged "learn Python" tutorial, though I ordered the topics such that you can read it like a tutorial, in that no topic depends on material below it.
13+
14+
Here are the currently available topics:
15+
16+
- Imports
17+
- Data Types
18+
- Math
19+
- Comparisons and Boolean Operations
20+
- Conditional Statements
21+
- Lists
22+
- Tuples
23+
- Strings
24+
- Dictionaries
25+
- Sets
26+
- Defining Functions
27+
- Anonymous (Lambda) Functions
28+
- For Loops and While Loops
29+
- Comprehensions
30+
- Map, Reduce, Filter
31+
32+
If you like the general format of this guide, but need more explanation of each topic, I highly recommend reading the Appendix of [Python for Data Analysis](http://shop.oreilly.com/product/0636920023784.do). It presents the essentials of the Python language in a clear and focused manner.
33+
34+
If you are looking for a resource that will help you to learn Python from scratch, this is [my list of recommended resources](https://github.com/justmarkham/DAT8#python-resources).
35+
36+
If there's a topic or example you'd like me to add to this guide, or you notice a mistake, please [create a GitHub issue](issues) or [contact me directly](http://www.dataschool.io/about/).
37+
38+
Thank you!

0 commit comments

Comments
 (0)