Input, Process, Output

Input, Process, Output are the building blocks of National 5 programs. Every program you encounter will have this format and you will be expected to be able to identify and implement each of them.

Key Points

Input refers to things user put into the program.

Process is the thinking part of the program.

Output is the final result of the program, given back to the user.

What Input, Process, Output looks like

The following program uses all three of the building blocks.

  • Input – Asking a user for a number
  • Process – Adding 5 to that number
  • Output – Printing out the final number
number = int(input("Enter a whole number: "))

new_number = number + 5

print("Your new number is", new_number)

National 5 Requirements

You should be able to identify the Inputs, Processes and Outputs of a program.

You should be able to implement your own Inputs, Processes and Outputs to a program.