Prompt the user for a temperature in degrees F. Using a single print statement, print the temperature, and if it is greater than 90 degrees, print “it’s very hot today!”.
Here’s some simple code for that:
temperature = int(input("Enter a temperature in degrees F: ")) if(temperature>90): print("It\'s very hot today!")
First takes the input in, of type
int, then compares it to 90, and if greater, prints out a string, in this case, “It’s very hot today!”.