Tuesday, September 27, 2011

LPTHW Exercise 29

Completed exercise 29. This exercise covered the 'if' statement in Python.

Some learnings:
  1. The if statement does not need () after it
  2. Should end with ':'
  3. Since it is a block, it's contents should be indented
Here is the code.

No comments:

Post a Comment