Revise Computing
Revision notesQuestionsFor schools
Log inStart revising free
Revision notesQuestionsFor schoolsLog in
GCSE Computer Science/Supplementary programming practice/Input

Input basics

301.6 Input

Practise exam questions

Input — Note 1 of 3

Read text input from user.

What you need to know

The input() function pauses the program and waits for the user to type something. It always returns a string, even if the user types a number.

What to know

  • input() returns a string, always
  • Pass a prompt message: input("Enter name: ")
  • The program pauses until the user presses Enter
  • Store the result in a variable: name = input("Name: ")

Code examples

Basic input
python
name = input("What is your name? ")
print("Hello,", name)
← Previous topicReadable output301.5 Concatenation and Basic StringsNext note →Numeric input301.6 Input

Back to Input

Specification notes for programming are in Paper 2.

Input

Note 1 of 3

  1. 1Input basics
  2. 2Numeric input
  3. 3IPO Pattern
Topic overview

© 2026 Revise Computing · revisecomputing.co.uk

Privacy noticeTermsContact

Revise Computing is an independent revision resource. It is not affiliated with, or endorsed by, OCR (Oxford Cambridge and RSA Examinations).