Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
godot enum 1

godot enum

June 12, 2022 by Anurag batra
# Enum Is Used To Create A Certain Amount Of Related Constants
enum my_enum {
	MYCONST1,
    MYCONST2 = 10,
}

Here is what the above code is Doing:
1. It creates an enum named my_enum.
2. It creates two constants, MYCONST1 and MYCONST2.
3. MYCONST1 is assigned the value 0.
4. MYCONST2 is assigned the value 10.

Categories Python Examples
Post navigation
get attribute in selenium python
create dataframe from csv and name columns pandas
© MyEduKit - 2022 . All Rights Reserved.