Create Enumeration

    0

    3

    enum
    Python public recipes

    Create a generic enumeration

    import enum
    
    class MyEnumeration(enum.Enum):
        """
        Represent an enumeration and its associated values
        """
        VALUE1 = 1
        VALUE2 = 2
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.