PCEP Practice: Collections, Functions and Exceptions | StemPy Lab
Question set
PCEP Practice: Collections, Functions and Exceptions
Questions in the style of the PCEP exam (Python Institute, PCEP-30-02) on data collections and on functions and exceptions: lists, slices, tuples, dictionaries, strings as sequences, parameters and defaults, return, scope, recursion, and try, except, else and finally. Each is a short program: predict what it prints, or find the bug. Every answer is worked out.