Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Use of Enums in Python
Home
Python
Use of Enums in Python
0
votes
asked
May 24, 2020
in
Python
by
SakshiSharma
Use of Enums in Python
#python-enums
#enums-python
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 24, 2020
by
Robindeniel
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
+1
vote
Q: In order to store values in terms of key and value we use that core data type in python?
asked
Jan 30, 2022
in
Python
by
sharadyadav1986
python-data-types
Python-questions-answers
0
votes
Q: Can we use a break and continue together in Python? How?
asked
Oct 11, 2021
in
Python
by
rajeshsharma
continue-
break
Python-questions-answers
0
votes
Q: What is the use of the // operator in Python?
asked
Sep 21, 2021
in
Python
by
sharadyadav1986
-operator
Python-questions-answers
0
votes
Q: How to use simple graphics for python
asked
Feb 2, 2021
in
Python
by
SakshiSharma
python
user-interface
python-3
x
tkinter
python-graphics
Python-questions-answers
0
votes
Q: What do we use to define a block of code in Python language?
asked
Jan 18, 2021
in
Python
by
SakshiSharma
python-block
Python-questions-answers
0
votes
Q: Mention the use of the split function in Python?
asked
Jan 1, 2021
in
Python
by
SakshiSharma
#split-function
#python-split-function
Python-questions-answers
0
votes
Q: Mention the use of double slash operator in Python?
asked
Jan 1, 2021
in
Python
by
SakshiSharma
#slash-operator
Python-questions-answers
0
votes
Q: How to use requirements.txt to install all dependencies in a python project
asked
Nov 15, 2020
in
Python
by
rajeshsharma
#python-error
#python-project
Python-questions-answers
0
votes
Q: Can you please explain what is the use of the dictionary in Python Language?
asked
Aug 30, 2020
in
Python
by
sharadyadav1986
#python-dictionary-use
#dictionary-python
Python-questions-answers
0
votes
Q: How do you use the split() function in Python Language?
asked
Aug 30, 2020
in
Python
by
sharadyadav1986
#python-split-function
#split-function
Python-questions-answers
...