Is it possible to change the attribute value in the enum?
Is it possible to change the attribute value in the enum? Question: I need to reassign the attribute value in Enum. from enum import Enum class Number(Enum): number = "1" Number.number = "2" # AttributeError: cannot reassign member ‘number’ I tried to reassign the attribute, but I got: AttributeError: cannot reassign member ‘number’ Asked By: …