Title: Layout 1
Course: CPS 120: Introduction to Computer Science ~ Master (Aug/2015) OLD > Section: Learning Units

✓ Layout 1 syntax – test whether or not to execute a block

if <condition>:
<block>

✓ Layout 1 examples:

if age >= 18:
print ("Person is old enough to vote.")

if x == 100:
print ("x is 100");