Answers for "what is an enumeration in py"

1

enumeration python

from enum import Enum

class Color(Enum):
    RED = 1
    GREEN = 2
    BLUE = 3

print(Color.RED)

class Shake(Enum):
	VANILLA = 7
    CHOCOLATE = 4
    COOKIES = 9
    MINT = 3
Posted by: Guest on January-26-2021
0

what is enumerate in python

df.iloc[:, np.r_[1:10, 15, 17, 50:100]]
Posted by: Guest on May-05-2021

Python Answers by Framework

Browse Popular Code Answers by Language