title: Temperature Conversion python function
body: <p><strong>I am trying to find the solution to this problem for 2 hours already i am not sure what to type to a function like this?</strong></p>
  
  <pre><code>num = input ('Which Degree Temperature would you like to convert? ')
  corf = raw_input ('Is the temperature Fahrenheit Degree or is it Celsius?(Type "f" for Fahrenheit or "c" for Celsius)')
  def max(num,corf):
      if corf == 1 :
          return num
          Celsius = (num - 32) * 5.0 / 9.0
          print str(num) + " Fahrenheit is equal to " + str(Celsius)+ " Celsius or " + ('%0.1f degrees Celsius ' %(Celsius)) + 'to one decimal place '
      elif corf == 2 :
          return num
          Fahrenheit = (num * 9.0 / 5.0 ) + 32  
          print str(num) + " Celsius is equal to " + str(Fahrenheit)+ " Fahrenheit or " + ('%0.1f degrees Celsius ' %(Celsius)) + 'to one decimal place '
      else:
          return 'Error'
  </code></pre>