Inputs & Outputs

Computer Science: OCR A Level, topic 7.1.3

Input and Output

We need some method of getting data into and out of the computer. That's where input and output commands come in.

Input

Input

  • Input is collecting data, usually by the keyboard.
  • This is written in pseudocode as:
  • variable = input("Please enter [something]...")
Output

Output

  • Output is putting data to the screen, usually as text.
  • This is written in pseudocode as:
  • print("Text goes here")

Test yourself on Inputs & Outputs

  • The user input method takes data from what device?

  • Which of these statements will output the text, 'Hello world!'?

Practise this topic for free