title: How to extract the year from a Python datetime object?
body: <p>I would like to extract the year from the current date using Python.</p>
  
  <p>In C#, this looks like:</p>
  
  <pre><code> DateTime a = DateTime.Now() 
   a.Year
  </code></pre>
  
  <p>What is required in Python?</p>