Updates: Tyler on PowerHacking CSS to cutestrap your app in this latest episode!

Python from Scratch Syllabus

1
2
def main():
    print("main: getting started")

Note: This syllabus is only partially tested

Topic 1 - Variables & Functions, intro to style:

  • Variables:
    • numbers/strings(the need for the \ escape, use doublequotes)
    • “constants”
  • print() and type()
  • Functions(/methods)
  • Style:
    • “write for humans, not computers”
    • Snake casing vs. Camel casing
    • A little about spacing

Topic 2 - Functions Inception, Loop Intro:

  • Functions calling functions, more on isolation (variable scope)
  • Intro to loops - printing, counting, iterating

Topic 3 - Veracity and Fake Truth:

  • Intro to Booleans
  • Basic conditions / Branching
  • Conditionally calling two different functions

Topic 4 - Lists and Tuples:

  • lists (arrays)
  • tuples
  • Loops (for/while, range)
  • Practical: Looping with arrays

Topic 5 - More Serious Loops & Modules:

  • Using a loop and a conditional
  • More advanced conditionals
  • Importing modules, batteries are included, dir/help

Topic 6 - Dict and Set (+recursion):

  • Dictionaries (aka hashes)
  • Sets (dictionaries without values)
  • Intro to recursion is an intro to recursion

Topic 7 - Getting Modular:

  • Modules
  • Our own imports

Topic 8 - Compact Pythonisms:

  • Comprehensions, lambdas-as-short-functions
  • Pair Arrays & Dicts
  • Slices

Topic 9 - IO and Structure:

  • Reading and Writing Files
  • …CSVs
  • …JSON (maybe pickle)

Topic 10 - Object Basics and Class:

  • Classes (as multifunction-bundles)
  • Enough OOP to get around

Topic 11 - PyPy/pip and Drawing:

  • Introduction to pip / PyPy (and we’ll only use virtualenvs)
  • turtle* and PIL(low)
    • (turtle if the editor upgrades work)

Topic 12 - Your first webapp:

  • Flask and your first webapp