Question: python 1. Let's create a temperature program! Complete the following lines of code: a. Create a variable called temp and set its value to user
1. Let's create a temperature program! Complete the following lines of code: a. Create a variable called temp and set its value to user input. The input should be converted to a float. You may be creative with the input prompt, but it should indicate to the user to enter a temperature in Fahrenheit. b. Create an if statement. This if statement should execute its body when temp's value is greater than 32. 1. Its body should have a statement that outputs the message "It is not freezing." c. Create an else statement. 1. Its body should have a statement that outputs the message "It is freezing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
