Let's say I have the enum:
class Example(Enum):
a = "example1"
b = "example2"
val = "a"
# print(Example.val.value) (?)
How can I get an enum value from a string using val? In my actual code, I need to do something like this because the name is unknown, and I need to access it from a string assigned to a variable.