There are two common temperature scales, Celsius and Fahrenheit (as well as Kelvin and Rankine that we won't talk about right now).
To convert from Celsius to Fahrenheit you multiply by 9 and divide by 5, then add 32. To convert from Fahrenheit to Celsius you subtract 32, then multiply by 5 and divide by 9.
Use code blocks to calculate and "print" the result of converting from one temperature scale to another. Drag blocks from the left, then click the "Run Code" button to see the output.
Output | Python Code |
---|---|