import enum
      
      class MyEnumeration(enum.Enum):
          """
          Represent an enumeration and its associated values
          """
          VALUE1 = 1
          VALUE2 = 2

      Python language logoCreate Enumeration

      enum
      Python public recipes

      Create a generic enumeration

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.