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

Case conversion

301.11 String Manipulation

Practise exam questions

String Manipulation — Note 3 of 4

UPPER lower Title.

What you need to know

String methods .upper(), .lower(), and .title() return new strings with changed case. The original string is not modified. Useful for case-insensitive comparisons.

What to know

  • .upper() converts to UPPERCASE
  • .lower() converts to lowercase
  • .title() capitalises first letter of each word
  • Original string is unchanged — methods return a new string
  • Use .lower() for case-insensitive comparison

Code examples

Case conversion
python
name = "alice smith"
print(name.upper())   # ALICE SMITH
print(name.title())   # Alice Smith

answer = input("Yes/No: ")
if answer.lower() == "yes":
    print("Confirmed")
← Previous noteSubstring slicing301.11 String ManipulationNext note →String validation301.11 String Manipulation

Back to String Manipulation

Specification notes for programming are in Paper 2.

String Manipulation

Note 3 of 4

  1. 1String length
  2. 2Substring slicing
  3. 3Case conversion
  4. 4String validation
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).