Python Enum Program Representation || Python


In this we are going to see a basic program to represent enum in Python Programming Language.



from enum import Enum

class Day(Enum):
    MON = 1
    TUES = 2
    WED = 3

print(Day.TUES)
print(Day.TUES.name)
print(Day.TUES.value)

# Coded By DHIRAJ SHELKE


#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post