title: Python datetime weekday number code - dynamically?
body: <p>to get the weekday no,</p>
  
  <pre><code>import datetime
  print datetime.datetime.today().weekday()
  </code></pre>
  
  <p>The output is an Integer which is within the range of <strong>0 - 6</strong> indicating Monday as 0 at <a href="https://docs.python.org/2/library/datetime.html#datetime.date.weekday" rel="noreferrer">doc-weekday</a></p>
  
  <p>I would like to know how to get the values from Python</p>
  
  <p>I wish to create a dictionary dynamically such as,</p>
  
  <pre><code>{'Monday':0, 'Tuesday':1,...}
  </code></pre>