ZeroDivisionError: division by zero
<p>I am creating a script that creates a BMI record by using information inputted by the user, but I keep coming across this error... Here is the code for the function: </p>

<pre><code>def bmi_calculator():
    print "bmi_calculator()"
    appelation = raw_input("Enter your appelation: ")
    fn = raw_input("Enter your first name: ")
    ln = raw_input("Enter your last name: ")
    i = input("Enter your height in inches: ")
    w = input("Enter your weight in pounds: ")
    f = i/12
    if round(f) &gt; f:
        f = int(round(f -1))
    else:
        f = int(round(f))
    i = i-(f*12)
    bmi = (w/(i*i))*703
    print "BMI Record for %s %s %s:" %(appelation, fn, ln)
    print "Subject is %r feet %r inches tall and weighs %r pounds." %(f,i,w)
    print "The subject's BMI is %r." %(bmi)
</code></pre>
