Use Python Create Function Collects Temperature Degree Celsius Input User Converts Degree Q37183784

Use Python to create a function that collects temperature indegree Celsius as input from a user and converts it to degreeFahrenheit. The same function should convert temperature fromdegree Fahrenheit to degree Celsius if the temperature provided wasin degree Fahrenheit. You can use branching (for example, if-else)statements within the body of your function ( Hint: First collectthe number, then also collect the unit of temperature so you canuse that unit of temperature as a condition to determine whetheryour conversion should be from degree Fahrenheit to degree Celsiusor vice-versa. Look up for the conversion formulas online).


Answer


CODE:

def conversionOfTemperature(temperature, unit) :
    if(unit

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.