StudyToCert

All certifications / PCEP / Lessons

PCEP – Certified Entry-Level Python Programmer PCEP-30-02 · Domain 1: Computer programming and Python fundamentals

Operator priority and binding, including right-to-left ** and unary minus

▶ Watch the overview video

Last reviewed September 30, 2026 · Leer en español

When an expression contains several operators, Python uses priority (also called precedence) to decide which operations happen first, and binding (associativity) to decide the order among operators of the same priority. Parentheses override both, so in your own code, add them whenever the order is not obvious. The exam, however, gives you expressions without helpful parentheses and asks for the result, so you need the table in your head.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 5 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study PCEP for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the PCEP study plan