Signed up recently but had issues with the confirmation email?

Click Forgot password and follow the reset steps. You can choose the same password you used when you signed up. This should then provide access.

Remember to check Spam and Junk. The email will be from auth@progressbytes.co.uk.

Revision notesQuestionsFor schools
Revise Computing
Log inStart revising free
Revision notesQuestionsFor schoolsLog in
GCSE Computer Science/Supplementary programming practice/Data Types and Casting

Choosing types

301.4 Data Types and Casting

Practise exam questions

Data Types and Casting — Note 2 of 4

Select correct data types.

What you need to know

Choosing the right data type matters for correctness and efficiency. Use int for counting, float for measurements, str for text, and bool for yes/no decisions.

What to know

  • Use int for quantities you count (lives, score)
  • Use float for measurements (height, price)
  • Use str for any text or mixed characters
  • Use bool for flags and conditions

Code examples

Choosing types
python
lives = 3          # int — count of lives
height = 1.75      # float — measurement
postcode = "SW1"   # str — contains letters
is_admin = False   # bool — yes/no flag
← Previous noteCommon data types301.4 Data Types and CastingNext note →Casting301.4 Data Types and Casting

Back to Data Types and Casting

Specification notes for programming are in Paper 2.

Data Types and Casting

Note 2 of 4

  1. 1Common data types
  2. 2Choosing types
  3. 3Casting
  4. 4Fix type errors
Topic overview

© 2026 Revise Computing · revisecomputing.co.uk

Worried about something?Question Bank UpdatesPrivacy noticeTermsContact

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