Inductive Python

Scientists are really good at starting from specific observations and going to general rules (inductive reasoning). That's how we're going to teach python.

  • This interactive approach should cement how python works in your mind.
  • This will help you learn to read existing code -- a super-important skill assuming you don't want to write everything from scratch.

Approach:

For each new idea, these exercises (mostly) follow a defined approach:

  • Predict (look at code, predict what it does, test the prediction)
  • Summarize (summarize what the code does)
  • Modify (take a bit of code and modify it in a defined way)
  • Implement (write code from scratch using the new concept)

In [ ]: