Name resolution order (LEGB)


  1. Local
  2. Enclosing
  3. Global
  4. Built-in