from enum import Enum class State(Enum): INACTIVE = 0 ACTIVE = 1 print(list(State)) print(State.ACTIVE) print(State.ACTIVE.value)