# Relational and Logical operators; Boolean values; Boolean operators; IF statements; string concatenation
# 2009-09-28
# Operators
# <, >, <=, >=
# == is equal to
# != is NOT equal to
# Boolean operators
# Boolean values are True and False
# Boolean operators will evaluate to
# True or False
# and
# a and b e.g. a<0 and b>3
# True if both a and b are True
# or
# a or b e.g. a<0 or b>3
# True if either a or b is True
# not
# not a e.g. not a<0
# True if a is False; False if a is True
# Using not with in:
# This does not work: a not in b
# Instead, use this: not (a in b)
# Conditionals: IF
if (a<0):
# Indent everything that will occur
# if the condition is True
elif (b>3):
# Indent everything that will occur
# if THIS condition is True
else:
# Indent everything that will occur
# if the condition is False
# String concatenation - gluing strings together
s = 'abc' + 'def'