0 votes
in Python by
Use of Enums in Python

1 Answer

0 votes
by
class Training:

Madanswer, Online, Madanswer = range(3)

   

print(MyName.Madanswer)

print(MyName.Online)

print(MyName.Madanswer)

Output:

1

2

3

2

1

2

Related questions

0 votes
asked Jan 18, 2021 in Python by SakshiSharma
0 votes
asked Aug 30, 2020 in Python by sharadyadav1986
...