python create enum using different values code example Example: get value from enum python print(D.x.value)