Python Tutorial for Beginners | Enum in Python ( available in Python 3.4+ )

preview_player
Показать описание
In this short tutorial , you will understand the basics of Enum in Python. The Enums are not widely used in python so I have kept the scope of this video to basic understanding.

Don't Forget to like and subscribe.
Please provide your suggestions under comments

'''

Enum in Python

'''

from enum import Enum

class city(Enum):
NYC = 1
Chicago = 2
San_Jose = 3
Рекомендации по теме