Skip to main content

Student Practice Center

Choose a course and practice type.

Course

Practice Type

Python Programming practice sets

Showing 1-5 of 8 unit-level practice sets

50 questions

Unit 1: Python Foundations

Variables, expressions, input/output, type conversion, and arithmeticStrings, indexes, slices, common methods, formatting, and parsingConditionals, Boolean logic, loops, counters, accumulators, and tracingDebugging with print tracing, error messages, and small test cases

50 questions

Unit 2: Functions and Program Design

Function parameters, return values, scope, helper functions, and decompositionWriting reusable code with clear names, preconditions, and test examplesRandomness, simulations, menu-driven programs, and input validationIntroductory unit testing habits with simple expected-output checks

50 questions

Unit 3: Collections and Algorithms

Lists, tuples, dictionaries, sets, nested structures, and data modelingTraversal patterns, filtering, counting, frequency maps, and groupingLinear search, binary search ideas, selection sort, insertion sort, and merge sort conceptsRuntime intuition, edge cases, empty data, duplicates, and off-by-one errors

50 questions

Unit 4: Object-Oriented Python

Classes, objects, instance variables, methods, constructors, and string representationsEncapsulation, composition, object relationships, and object collectionsDesigning small systems such as gradebooks, game objects, inventories, and simulationsConnecting Python OOP ideas to Java and AP Computer Science A vocabulary

50 questions

Unit 5: Files, APIs, and Automation

Reading and writing text files, CSV files, JSON data, and directory pathsUsing requests for APIs and Beautiful Soup for introductory web data extractionAutomating repetitive tasks, report generation, simple dashboards, and data cleanupEnvironment setup with pip, virtual environments, Jupyter notebooks, and Google Colab