Add and Compare Datetime in Python <p>How do I write this pseudocode in Python? With 'created_date' being a datetime object.</p> <pre><code>if (created_date + 30days) &lt; now: print 'valid' else: print 'expired' </code></pre>