Common Boolean Operators (OCR GCSE Computer Science): Revision Note
Exam code: J277
Common Boolean Operators
To demonstrate the use of common Boolean operators, three sample programs written in Python are given below
Comments have been included to help understand how the Boolean operators are being used
Common Boolean operators #1 - a simple program that assigns Boolean values to two variables and outputs basic comparisons
Common Boolean operators #2 - a simple program to output a grade based on a users score
Common Boolean operators #3 - a simple program reads a text files and searches for an inputted score
Python code |
|
You've read 0 of your 5 free revision notes this week
Unlock more, it's free!
Did this page help you?