Source Code:
(back to article)
from enum import Enum Farbe = Enum('Farbe', ['ROT', 'GRÜN', 'BLAU']) print(Farbe.ROT)
Result:
Report an issue