12/ Testing sets of conditions

if (age > 65 or age < 21) and res == "U.K.":
  status = "try to recruit him"

Coding exercices

13/ if statements nested

if c == d:
  if x==y:
    g = h
  elif a == b:
    g = h
else:
  e = f

Coding exercices