Python - display different output if the input is a letter or a number
<p>I want to print the result of the equation in my <code>if</code> statement if the input is a digit and print <code>"any thing"</code> if it is a letter.</p>

<p>I tried this code, but it's not working well. What is wrong here?</p>

<pre><code>while 1:
    print '\tConvert ciliuse to fehrenhit\n'
    temp = input('\nEnter the temp in C \n\t')
    f = ((9/5)*temp +32)
    if temp.isdigit():
        print f
    elif temp == "quit" or temp == "q" :
        break
    elif temp.isalpha() :
        print ' hhhhhhh '
</code></pre>
