title: How to make a dict from an enum?
body: <p>How to make a dict from an enum?</p>
  
  <pre><code>from enum import Enum
  class Shake(Enum):
      VANILLA = "vanilla"
      CHOCOLATE = "choc"
      COOKIES = "cookie"
      MINT = "mint"
  
  dct = {}
  for i in Shake:
      dct[i]=i.value
  
  print(dct)
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>{&lt;Shake.VANILLA: 'vanilla'&gt;: 'vanilla', &lt;Shake.CHOCOLATE: 'choc'&gt;: 'choc', &lt;Shake.COOKIES: 'cookie'&gt;: 'cookie', &lt;Shake.MINT: 'mint'&gt;: 'mint'}
  </code></pre>
  
  <p>But I want the key to be VANILLA and not <code>&lt;Shake.VANILLA: 'vanilla'&gt;</code></p>