python get enum name from its value code example Example: get value from enum python print(D.x.value)