title: AttributeError: 'module' object has no attribute 'TextCalendar'
body: <p>When I copy the below code in Ideone then it runs fine but it is not running in the text editor and showing the error mentioned in the subject of this post:</p>
  
  <pre><code>import calendar   
  c = calendar.TextCalendar(calendar.SUNDAY)
  c.prmonth(2007, 7)
  </code></pre>
  
  <p>The complete error is:</p>
  
  <pre><code>Traceback (most recent call last):
    File "calendar.py", line 1, in &lt;module&gt;
      import calendar   
    File "/home/shl/Desktop/calendar.py", line 2, in &lt;module&gt;
      c = calendar.TextCalendar(calendar.SUNDAY)
  AttributeError: 'module' object has no attribute 'TextCalendar'
  </code></pre>