Answer the question
In order to leave comments, you need to log in
Can a python class have two parents?
Hello everyone,
I apologize for the stupid question, but what is the difference between these two classes:
1)
class DirectionName(str, Enum):
north = "North"
south = "South"
east = "East"
west = "West"
class DirectionName(Enum):
north = "North"
south = "South"
east = "East"
west = "West"
Answer the question
In order to leave comments, you need to log in
Can a python class have two parents?
what is the difference between these two classes
like not one of them, for example,
does not give an error when calling a function!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question