NameError: name 'C' is not defined` error Converting Temperature
<p>I'm working on this Python code to convert Fahrenheit to Celsius and the second code that converts Celsius to Fahrenheit. I wrote each code the same way, using (if/else) but whenever I try to make the first condition true. For example, when temperature F = -400 I get a <code>NameError: name 'C' is not defined</code> error. </p>

<p>I tried changed the line position for C so it runs before the last print line. But still no luck. The second code part that converts C to F runs without this error. I tried putting the equation for C after the last print line but still the same error. </p>

<p>Is this something that I may be missing on the first part that may be preventing me from making the first condition true? </p>

<p>I'm running Python 2.7.10 and using  Terminal on Mac OS X El Capitan (10.11) </p>

<p><strong>Convert Fahrenheit to Celsius:</strong></p>

<pre><code>F = int(raw_input("Enter Temperature In Fahrenheit:")) 

if F &gt;= (-459.67):

    print "Temperature in absolute zero cannot be achieved"

else: 

    C = F - 32 * (0.555556) 
print "The temperature is %.1f" 'C'  % C 
</code></pre>

<p><strong>Convert Celsius to Fahrenheit:</strong></p>

<pre><code>C = int(raw_input("Enter Temperature In Celsius:"))

if C &lt;= (-273.15):   

    print "Temperature in absolute zero cannot be achieved" 

else:                                                        

    print "The temperature is %.1f" 'F' % F                 
F = C * (1.8) + 32  
</code></pre>