Through the First Seven Chapters of Invent with Python!

Andrei Marks · August 31, 2011

Well, here are the topics I’ve covered in Python so far, not necessarily in order:

  • Values
    • Integers
    • Floating Point Numbers
    • Strings
      • Multi-line
    • Boolean Data Types
    • Lists
      • Index/Index Error
  • Operators
    • Data Types
    • Assignment
    • Comparison
    • Boolean
  • Expressions
    • Evaluating Expressions
    • Conditions
  • Variables
    • Overwriting
    • Scope
      • Global
      • Local
    • Parameters
    • Constants
  • Functions
    • print()
      • Escape Characters
      • end=' ' Parameter
    • input()
    • Data Type Conversion
      • str()
      • int()
    • Modules
      • Import
    • Arguments
      • Delimitation
    • Creating Functions
      • def
      • Return Keyword
  • Execution
    • Syntax Errors
    • Comments
    • Case sensitivity/conventions
    • Loops
      • Flow Control Statements
        • If
        • While
        • Break
        • Else
      • Blocks
      • Colon
      • Incrementing
      • Decrementing
    • Breakpoints
    • Debugging

I’ve dissected a number of different programs through the book, namely:

  • A number guessing game.
  • A simple CYOA game with a single decision.
  • A program that dealt with outputting strings.
  • A coinflipping guessing game exploring breakpoints.
  • An addition game exploring semantic error.

And I’m currently working on lists and more in a Hangman game. Some of the concepts above I was at least familiar with, such as how loops work, or the step-by-step procedure of how the computer reads the source code. Otherwise, it’s all pretty straightforward so far, though this Hangman program is a doozy compared to the previous ones.

Twitter, Facebook