Operator: AP Computer Science Definition
Written by: James Woodhouse
Reviewed by: Robert Hampton
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: &, |, ^, <<, >>
Sign up for articles sent directly to your inbox
Receive news, articles and guides directly from our team of experts.
Share this article