title: Why type coercion works differently on scripts / interactive prompt?
body: <p>I'm using Python 3.1.2 (Mac OS X 10.6) and found this weird behavior (I'm a newbie, btw):</p>
  
  <p>On the interactive prompt:</p>
  
  <pre><code>&gt;&gt;&gt; fraction = 4 / 3
  &gt;&gt;&gt; print(fraction)
  1.33333333333
  &gt;&gt;&gt; print(type(fraction))
  &lt;class 'float'&gt;
  </code></pre>
  
  <p>However, if I do the same thing in a script, results are different:</p>
  
  <pre><code>## fraction.py
  
  fraction = 4 / 3
  print(fraction)
  print(type(fraction))
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>1
  &lt;class 'int'&gt;
  </code></pre>
  
  <p>Is this normal?</p>