title: Update the values of a month's dictionary based on the current month - PYTHON3
body: <p>I have a dictionary as shown below.</p>
  <pre><code>months_dict = {&quot;m1&quot;:&quot;JAN&quot;, &quot;m2&quot;:&quot;FEB&quot;, &quot;m3&quot;:&quot;MAR&quot;, &quot;m4&quot;:&quot;APR&quot;, &quot;m5&quot;:&quot;MAY&quot;, &quot;m6&quot;:&quot;JUN&quot;,
                 &quot;m7&quot;:&quot;JUL&quot;, &quot;m8&quot;:&quot;AUG&quot;, &quot;m9&quot;:&quot;SEP&quot;, &quot;m10&quot;:&quot;OCT&quot;, &quot;m11&quot;:&quot;NOV&quot;, &quot;m12&quot;:&quot;DEC&quot;}
  </code></pre>
  <p>Which I would like to update with last 12 months as shown below.</p>
  <p>Expected output:</p>
  <pre><code>current_month_dict = {&quot;m1&quot;:&quot;MAR&quot;, &quot;m2&quot;:&quot;APR&quot;, &quot;m3&quot;:&quot;MAY&quot;, &quot;m4&quot;:&quot;JUN&quot;, &quot;m5&quot;:&quot;JUL&quot;, &quot;m6&quot;:&quot;AUG&quot;,
                        &quot;m7&quot;:&quot;SEP&quot;, &quot;m8&quot;:&quot;OCT&quot;, &quot;m9&quot;:&quot;NOV&quot;, &quot;m10&quot;:&quot;DEC&quot;,&quot;m11&quot;:&quot;JAN&quot;,&quot;m12&quot;:&quot;FEB&quot;}
  </code></pre>
  <p>My try:</p>
  <pre><code>from datetime import datetime
  current_month_text_3 = datetime.now().strftime('%h').upper()
  </code></pre>
  <p>I am stuck after that. I tried a lot by looping over the dictionary and creating a static month list and all. Could not figure out correct logic.</p>