Python converting temperature error
<p>I tried writing this code to convert temp from Fahrenheit to Celsius and Vice-versa.</p>

<pre><code>try:
        temperature=raw_input ("Enter temperature in numerals only")
        temp1=float(temperature)
        conversion=raw_input ("Convert to (F)ahrenheit or (C)elsius?")
def celtofah():
        temp2 = (9/5)*temp1+32
        print temp1," C = ",temp2," F"
def fahtocel():
        temp2 = (5/9)*(temp1-32)
        print temp1," F = ",temp2," C"
if conversion == F:
        celtofah()
elif conversion == C:
        fahtocel()

except:
        print "Please enter a numeric value"
</code></pre>

<p>However I seem to be getting an error on line 5 where I have defined the celtofah function.</p>

<p><a href="https://i.stack.imgur.com/3dGAd.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3dGAd.jpg" alt="enter image description here"></a></p>

<p>I don't think the indentation is wrong here although I could be missing out on something.</p>