KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to make an enum-type class in Python but it gets so lengthly when you have to do VARIABLE1, VARIABLE2, VARIABLE3, VARIABLE3, VARIABLE4, VARIABLE5, VARIABLE6, VARIABLE7, VARIABLE8, ... , VARIABLE14 = range(14) and I've tried to set it up like the following, but ended up not working. VARIABLE1, VARIABLE2, VARIABLE3, ... VARIABLE14 = range(14) How would I accomplish this in the simplest way possible?
Tags (comma-separated)
Save Edits
Cancel