Python Institute PCEP-30-02 Cheat Sheet

Review a compact PCEP-30-02 cheat sheet for Python syntax, control flow, collections, functions, exceptions, and beginner code tracing before IT Mastery practice.

Use this cheat sheet before a PCEP-30-02 practice set. The exam is entry-level, but many misses come from rushing simple code: trace values, control flow, collection behavior, and function output before picking an answer.

Open PCEP practice when you are ready for the free diagnostic, topic drills, timed mocks, and the full IT Mastery question bank.

Exam snapshot

ItemPCEP cue
VendorPython Institute / OpenEDG
CertificationCertified Entry-Level Python Programmer
Exam code / familyPCEP-30-02 / PCEP-30-0x
Main practice behaviorbeginner Python syntax, output prediction, and code tracing
IT Mastery statuslive practice available

Domain checklist

DomainWeightWhat to knowCommon trap
Computer Programming and Python Fundamentals18%literals, variables, operators, type conversion, print, input/output basicsassuming a conversion happens automatically
Control Flow29%if, elif, else, loops, truthiness, ranges, break, continuemissing one loop iteration or branch condition
Data Collections25%strings, lists, tuples, dictionaries, indexing, slicing, mutabilitytreating mutable and immutable objects the same way
Functions and Exceptions28%parameters, return values, scope basics, simple exception flowconfusing printed output with returned values

Must-know distinctions

  • Assignment versus comparison: = binds a name; == checks equality.
  • print() output versus a function return value: visible output is not always the value passed onward.
  • break versus continue: one exits the loop; the other skips to the next iteration.
  • List versus tuple: lists are mutable; tuples are not.
  • Indexing versus slicing: indexing returns one item; slicing returns a sequence.
  • Local variable versus global name: a function call has its own local scope.
  • Exception raised versus exception handled: a handler only runs when the matching exception path is reached.

Common traps

  • Forgetting that Python uses indentation to define blocks.
  • Counting loop iterations from the wrong range endpoint.
  • Assuming strings can be modified in place.
  • Ignoring operator precedence in short expressions.
  • Reading a function as if every branch returns a value.

Practice strategy

Use the free diagnostic once, then drill your weakest behavior type. If you miss output questions, trace the code line by line. If you miss control-flow questions, write the loop variable values. If you miss collection questions, identify mutability and index boundaries before looking at options.

Revised on Monday, May 25, 2026