What will it look like onscreen?

Our first consideration of user interface and user interaction.

As you've seen when you ran the program, the disappointing answer is that not much appears on-screen. When we run the program it will watch the input channel and wait for a value to appear there. Specifically, it will wait for the Enter key on the keyboard to be pressed, and then look in the keyboard buffer to see what keys were pressed before the Enter key. From these keypresses it will attempt to construct an integer value which it will store in temp_in_f. It will not instruct us to type anything; we must just remember to do so. When we do type, we will see the characters we type appear on-screen, and have until we press the Enter key to Backspace over the line making changes. Pressing the Enter key forwards the line we have typed to the processor.

If we have typed 40, then after it has calculated the equivalent temperature on the Celsius scale it will display 4 beneath our 40 on the screen. So the screen might look something like this:

40
4.444444444444445

Hardly inspiring, and no casual user would realize they were supposed to type anything, nor, on the off chance they did type a number, would they realize what the output was.

(This is a good chance to experience another error message. Press F5 again to run your program and instead of typing a number type the word help and then press the Enter key.)

To make our program more useful we need to provide instructions to the user, and explain the output. We do this by inserting extra print statements into the program. For example:

print("This program converts temperatures from Fahrenheit to Celsius.")
print("Enter a temperature in Fahrenheit (e.g. 10) and press Enter.")
temp_in_f = int(input("Temperature in Fahrenheit: "))
temp_in_c = (temp_in_f - 32) * 5 / 9
print(temp_in_f, "degrees Fahrenheit =", temp_in_c, "degrees Celsius.")

Now the screen will look like this:

This program converts temperatures from Fahrenheit to Celsius.
Enter a temperature in Fahrenheit (e.g. 10) and press Enter.
Temperature in Fahrenheit: 40
40  degrees Fahrenheit =  4.444444444444445  degrees Celsius.

Still not earth-shattering, but a marked improvement.

There are quite a few things to note in this small example:

Using string literals judiciously it is possible to create clear input instructions, and clearly (if modestly) formatted output.