Python - What is Enum?

Asked

Viewed 383 times

1

I used the type function on an object and the returned was: <enum 'Button'>.

What does that mean?

1 answer

4


Enum is basically a list of constant values. The use of enums makes it easier for the programmer to access information. Enum automatically or manually associates a numerical value with a string. See here.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.