McGill University • Montreal
Struggling with COMP 202 at McGill? I offer private tutoring for McGill's introductory Python programming course in Montreal. Whether you're stuck on functions, loops, lists, or your first OOP assignment, I help you understand the concepts, not just copy the solution.
8 chapters, 90 corrected exercises and 8 revision sheets, plus one set that covers the whole term at once. Free, no account needed: the full worked solution is on the page.
Before a midterm
The ten exercises a COMP 202 student actually loses marks on. Part A is the mechanics: the three division operators and the negative floor, truth values and short circuiting, the boundaries of range and the accumulator pattern, string slicing against string indexing, and list aliasing drawn as a memory diagram. Part B works at midterm level: call frames and the print against return distinction, nested loops and the list-of-lists trap, five plausible statements to correct, a file of marks read and reported on, and a naive Fibonacci whose call tree explains why correct is not the same thing as usable.
10 exercises across the whole course →COMP 202, Foundations of Programming, is McGill University's introductory computer science course. It is the general introduction to programming, open to students from any program: life sciences students usually take COMP 204 and engineering and physical sciences students COMP 208 instead. For many students it is also the first step before COMP 250. The course is taught in Python.
Despite being an "intro" course, COMP 202 has a reputation for being challenging for students with no prior programming experience. The concepts build on each other quickly, and the assignments require genuine problem-solving, not just memorizing syntax.
The main difficulty is the shift in thinking required. Programming demands a precision and logical structure that most students haven't needed before. A tutor who can bridge that gap, explaining not just what to write but why, makes a significant difference.
Corrected exercises: types and conditions • loops
Corrected exercises: functions and scope • recursion
Corrected exercises: lists and dictionaries • strings
Corrected exercises: files and exceptions • classes and objects
Using = when you mean == is one of the most common bugs for beginners. Understanding the difference between storing a value and comparing two values prevents hours of frustration.
Writing a function that prints a result instead of returning it, then trying to use the result elsewhere. Understanding the difference between print() and return is fundamental.
Modifying a list inside a for loop that's iterating over it produces unexpected results. Knowing when to iterate over a copy, or when to build a new list, is a key skill for COMP 202 assignments.
Loops that run one iteration too many or too few. Understanding how range() works, and why it stops before the end value, clears up a huge number of bugs.
Beyond COMP 202, I also tutor the following courses:
Similar to COMP 202 but with a biology and data focus. Functions, loops, NumPy basics, file processing.
C programming, Unix command line, memory management, pointers, Makefiles, shell scripting.
Java, data structures (linked lists, stacks, queues, trees, graphs), sorting algorithms, complexity analysis.
Object-oriented programming I and II in Java. Classes, inheritance, polymorphism, interfaces, exception handling.
I hold a B.Sc. in Computer Science, Finance and Mathematics from McGill University and an M.Sc. in Applied Computer Science from Concordia University. I've been tutoring programming in Montreal for over 10 years, from introductory Python to advanced data structures and algorithms.
I know exactly where students get stuck in COMP 202, and more importantly I know how to explain the concepts in a way that builds real understanding. My goal isn't to get you through one assignment. It's to make you a stronger programmer.
The same free corrected material exists for other courses, some of it in English and the rest in French.
COMP 202 (Foundations of Programming) is McGill University's introductory programming course. It teaches Python programming fundamentals including variables, control flow, functions, lists, dictionaries, file I/O, and basic object-oriented programming.
Yes. I offer private tutoring for COMP 202 and other McGill introductory programming courses in Montreal, both in-person and online via Microsoft Teams.
In addition to COMP 202, I tutor COMP 204 (Python for Life Sciences), COMP 206 (Introduction to Software Systems, in C), COMP 250 (Introduction to Computer Science, in Java), and other introductory CS courses at McGill and Concordia.
Get in touch to book a first session, in person or online, adapted to your schedule.