The required output is as follows:
Question Grade Points: 3 You have been provided the following conversion formulas: # Fahrenheit to Cetsius Conversion = (Fahrenheit . 32) t (5/9) # Celsius to Fahrenheit Conversion : (Ceisius * (9/5)) + 32 You have been asked to do the following: You have been asked to do the following: To create a Python function that does temperature conversions, as follows: Create a function named convert_ternp with one positional argument named degrees; and another keyword argument named cnv_type with a default value of 'ftoc' inside your new function, you will need to check for the type of variable being passed in your positional argument named degrees. If this variable type is an 'int' or a 'oat', you will proceed with the required degrees conversion. If the variable type is not an 'int' or 'float', your function will use the return statement to provide a value of -2 to the function caller and will not do any further conversions. 0 After ensuring that the variable type of your positional argument named degrees is either int or float, your new function will convert the degrees (which is your function positional argument) to Celsius using the correct formula provided in this question (above) when the positional argument cnv_type is passed the value 'ftoc'. The converted degrees (by your formula) will use the function return statement to provide its converted value to the function caller and will not do any further conversions. Ensure your conversion values are rounded up to 1 decimal. After ensuring that the variable type of your positional argument named degrees is either int or oat, your new function will convert the degrees (your function positional argument) to Fahrenheit using the correct formula provided in this question (above) when the positional argument cnv_type is passed the value 'ctof'. The converted degrees (by your formula) will use the function return statement to provide its converted value to the function caller and will not do any further conversions. Ensure your conversion values are rounded up to 1 decimal. if you pass a positional argument with values other than 'ftoc' or 'ctof', your function will use the return statement to provide a value of -1 to the function caller and will not do any further conversions. Quality Assurance Checks: convert-tempUea) conver't_terrrp(100, 'ftoc ') convent_temp( '106' , 'ftoc' ) convert_terlrp(31, '(tof') conver'ttempl, 'bla') - if you were to run the following function calls, your output would be as follows: In [16] : convert_ternp(1ea) nut[1e]: 37.8 In [11]: convert_temp(166, 'ftoc') 0ut[11]: 37.8 In [12]: convert_temp('lae', 'ftoc') Out[12]: 2 In [13]: convert_temp(31, 'ctoF') Out[13]: 8?.8 In [14]: convert_temp(31, 'bla') 0ut[14]: 1