Snippets to jump start learning Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.



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:


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

  • Slicing
  • Mods

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

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

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

  • Parsing text with regular expessions

  • Applying regular expressions to scraping nuclear reactor data

  • Creating functions


  • Using the csvkit Python library to handle CSV files