title: Always int divide int = float in Python
body: <p>My problem is when I divide a number like: 10 / 2 → integer / integer.</p>
  <p>The result is 5.0 and it is float, but it shouldn't be float. The problem is Python adds 0.0 to every number accept to divide with the second number.</p>
  <p>So I want 10/2 be integer.</p>
  <p>I tried</p>
  <pre><code>x = 10
  y = x/2
  type(y) == int
  </code></pre>
  <p>It prints false. I want type(y) print the true result although x was a prime or odd number.</p>