Operator - AP® Computer Science Definition
Reviewed by: James Woodhouse
Last updated
What is an operator?
In AP Computer Science, an operator is a symbol in programming that performs an action on one or more values (operands). Operators are used in expressions, calculations, and logical conditions.
Types of operators in Python:
Arithmetic operators: +, -, , /, %, * (e.g., sum = 5 + 3)
Comparison operators: ==, !=, >, <, >=, <=
Logical operators: and, or, not
Assignment operators: =, +=, -=, *=, /=
Bitwise operators: &, |, ^, <<, >>
Examiner-written AP® Computer Science revision resources that improve your grades 2x
- Written by expert teachers and examiners
- Aligned to exam specifications
- Everything you need to know, and nothing you don’t

Share this article