Snippets to jump start learning Python
Python
Latest commit d6c8368 Mar 12, 2016 @anthonydb Better birth rate stat.

README.rst

python-get-started

A collection of basic Python examples designed to get a student up and running on the language.

More tutorials and documentation:

After you've mastered these examples, also check out:

Outline

1-variables-data-structures.py

  • Integers
  • Decimals
  • Strings
  • Lists
  • Tuples
  • Dictionaries

2-string-methods.py

  • Slicing
  • Mods

3-control-structures.py

  • if ... then ... else
  • while
  • for

4-file-io.py

  • Opening, reading from and writing to files
  • Bonus: Word frequency counter

5-web-scraping.py

  • Using Requests and BeautifulSoup to fetch and parse a web page

6-regular-expressions.py

  • Parsing text with regular expessions

6.1-regular-expressions-web-scrape.py

  • Applying regular expressions to scraping nuclear reactor data

7-functions.py

  • Creating functions

8-csvkit.txt

  • Using the csvkit Python library to handle CSV files