Source Code:
(back to article)
from enum import Enum Color = Enum('Color', ['RED', 'GREEN', 'BLUE']) for farbe in Farbe: print(farbe)
Result:
Report an issue