AnsweredAssumed Answered

Use a list in python

Question asked by topo_geo on Sep 28, 2012
Latest reply on Sep 28, 2012 by topo_geo
I would create a list in a code in the field calculator and use it to claasify an attribute

this is the code, where is the mistake please

def code(ALTITUDE):  list [60, 70, 80]  if ALTITUDE in list:   return 1

Outcomes