I'm trying to use 2 data types on one variable in python?
<p>Im trying to get float data type available on my code. My code so far is;</p>

<pre><code>age = int (input("Age of the dog: "))

if age &lt;= 0:
    print ("This can not be true!")
elif age == 1:
    print ("He/she is about 14 in human years.")
elif age == 2:
    print ("He/she is about 22 in human years.")
elif age &gt; 2:
    human = 22 + (age - 2) * 5
    print ("He/she is about", human, "human years")
</code></pre>

<p>If you change your first line to</p>

<pre><code>age = float(input("Age of the dog: "))
</code></pre>

<p>your program will show a floating point age.</p>

python