Basics of Programming Using Python - Revision

As part of this topic we will be revising basics of Python such as defining scope using indentation, if conditions, for loops etc.

l = [1, 2, 7, 8, 6, 9, 11]
total = 0
for i in l:
  if (i % 2 == 0):
    total += I

print(total)