Input, Process, Output

Every program that you will write requires the three steps – Input, Process, Output.

  • Input – This refers to the data that is being input or read into a program.
  • Process – This is the thinking part of the program, where the data can be changed or used.
  • Output – This is where the user receives feedback from the program.

For example, in a program where a number has ‘5’ added to it each time:

  1. The user INPUTS a number into the program, let’s say, 10.
  2. The program processes the input, and adds it to 5.
  3. The program then outputs the total for the user, 15.

 

Example Code Snippet

#Input: asks the user for a number
number = int(input("Enter a number: "))

#Process: the number is then added to 5 to create the total
total = number + 5

#Output: the total is printed for the user
print(total)

Target

You should be able to use Input, Process, Output to create a solution.