PCAP Practice: Strings, Functions and Files | StemPy Lab
Question set
PCAP Practice: Strings, Functions and Files
Questions in the style of the PCAP exam (Python Institute, PCAP-31-03) on strings, exceptions in functions, list comprehensions, lambdas and closures, map and filter, generators, and reading and writing files. Each is a short program: predict what it prints, or find the bug. Every answer is worked out.