Python Basics

by Elliott Hauser

12 Jan 2016

Quick Intro

tl;dl: Coding should be fun! Do lots of it and you’ll get good at it. Don’t cheat, pay attention, be on time.

  • My bio
  • My stance on Honor
  • My pay attention policy
  • My late policy
  • Basic orientation to website

Read the syllabus and feel free to email me with any questions or concerns.

Why this class is cool:

  • You will make games and command line scripts with Python
  • You will submit and merge pull requests on github (an important professional skill!)
  • You will use several languages besides Python including YAML, Markdown, HTML and Bash
  • You will feel confident and be effective a learning new things
  • You will learn problem solving strategies and attitudes that will serve you well in any career

Why Python is Cool

Cool interactive animations:

Interactive Games:

Data Viz:

But programs can also be very simple, and we’ll start simple.

Your First Python Program

Programs are composed of small pieces. In this class you’ll learn about the pieces and then put the pieces together to form more and more complex programs. Our first in-class exercise will take you from drawing a simple line to making more complex drawings. This will prepare you for your first homework, which is to use what we learn in class and online resources to make a drawing.

Check it out. This is our first in-class exercise.

Elliott Hauser is a PhD Student in information science at UNC Chapel Hill. He's hacking education as one of the cofounders of Trinket.io. Find Elliott Hauser on Twitter, Github, and on the web.