MENU

Fun & Interesting

Enums in Python are SIMPLE but POWERFUL

Carberra 9,422 lượt xem 5 months ago
Video Not Working? Fix It Now

Enums, or enumerators, are a very easy way to add structure, choice, or state into your program. There are many different types to use in different situations, so let's delve into it!

00:00 - Intro
00:35 - Creating an enum
04:20 - Using IntEnum
06:11 - Using StrEnum
07:18 - Using Flags
11:18 - Outro



If you want to see more of me, join my Discord server!
https://discord.gg/5vVgQpK

I get a lot of people asking, so here's my setup!
• Visual Studio Code: https://youtu.be/PBQspYkkksU
• Terminal: https://youtu.be/4RuGK3w6Mbs
• Desk/recording gear: https://kit.co/Carberra
• PC build: https://uk.pcpartpicker.com/list/TmzGYN

Affiliations (I may earn a commission):
• Codecrafters -- 40% off any plan: https://app.codecrafters.io/join?via=parafoxia
• Keeper Password Manager -- 30% off your first year: https://keeper.io/r/EX4FB1C



If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.

#python #coding #howto

Comment