Session 4

LPTHW – Lesson 7, 8, 9, 10, 11

These lessons covered stings, escape sequences and raw_input, which is one of my favorite functions! The first time through this book, I remember feeling a real sense of discovery after learning how to combine raw_input() and int() to do basic math within a program.

A few things I noted down to remember:

  • Commas suppress newlines between two print statements
  • I should remember to keep all lines < 80 characters
  • Remember to use “”” for long paragraphs of text
  • Remember to indent additional lines in a statement (beyond the first)
  • Spend some time learning the rest of the escape sequences