title: Python Temperature converter output is none
body: <p>Im trying to create a function which will convert temperatures based on the temperature that is being converted from to the temperature which we want. However the output of my code is none when I test it.</p>
  <pre><code>def convertTemperature(T, unitFrom, unitTo):
  if unitFrom==&quot;Fahrenheit&quot; and unitTo==&quot;Celsius&quot;:
      T=(T-32)/1.8
      return T
  elif unitFrom==&quot;Kelvin&quot; and unitTo==&quot;Celcius&quot;:
      T=T-273.15
      return T
  elif unitFrom==&quot;Celcius&quot; and unitTo==&quot;Fahrenheit&quot;:
      T=1.8*T+32
      return T
  elif unitFrom==&quot;Kelvin&quot; and unitTo==&quot;Fahrenheit&quot;:
      T=1.8*T-459.67
      return T
  elif unitFrom==&quot;Celcius&quot; and unitTo==&quot;Kelvin&quot;:
      T=T+273.15
      return T
  elif unitFrom==&quot;Fahrenheit&quot; and unitTo==&quot;Kelvin&quot;:
      T=(T*459.67)/1.8
      return T
      
  </code></pre>
  <p>the unitFrom parameter is the current temperature, T is the temperature and unitTo is the temperature to which I want to convert.
  I tried testing it with <code>print(convertTemperature(50.0, &quot;Fahrenheit&quot;, &quot;Celcius&quot;))</code> but the output was none.</p>