python incorrectly calculates number : <p>So, this was in my exam paper and I was really confused</p>

<pre><code>def num_input():
    num1 = input("num1: ")
    num2 = input("num2: ")
    num1 = int(num2)*2.5
    num2 = int(num1)*1.5
    print("num1:", num1, "num2:", num2)

num_input()
</code></pre>

<p>say that num1 = 60, and num2 = 18, shouldn't the new numbers be:</p>

<pre><code>num1: 45
num2: 90
</code></pre>

<p>but why is the output:</p>

<pre><code>num1: 45
num2: 67.5
</code></pre>

<p>?</p>
