Skip to content
One hour with George, then a written plan the next working day. Book yours.

A college programming and Python tutor, one to one

George Li teaches college introductory programming and Python one to one by video: how to trace what a program does, plan before typing and test as you go.

For students and parents planning test prep or coursework: one hour with George Li, one to one by video, is $180, $200 or $160, by subject. You leave with a written plan within one working day.

Book your first session

What a college introductory programming course typically covers

Courses differ in language details and pace, so the syllabus decides the plan. Most Python courses move through these blocks.

  • Variables, types and expressions. Integers, floats, strings and booleans, integer division and how Python evaluates an expression.
  • Conditionals and loops. Branching, for and while loops, and tracing which lines run and in what order.
  • Functions. Parameters, return values, scope and how to break a problem into small functions.
  • Strings, lists, tuples, dictionaries and sets. Indexing, slicing, changing a value in place and how to choose the structure that fits the task.
  • Files and errors. Reading and writing text files, exceptions and how to test a function by hand.
  • Recursion. The base case and the recursive case, and how the calls stack up and unwind.
  • Objects and classes. Attributes, methods and how to design a small class.
  • Debugging. Reading an error message, printing intermediate values, using a debugger and writing small tests.

Where students usually get stuck

Beginners lose most of their time not on syntax but on tracing: they cannot say what the program does line by line. Sessions start with running the code on paper with a small input, writing down each variable as it changes, until what you see matches what you predicted.

The second gap is planning. A student who starts typing before knowing the steps patches errors one at a time. George asks for the plan in plain words first, then the code, and coaches the habit of testing each small function before building the next one on top of it.

What a session looks like

  1. You bring the question. A program that does not behave, a concept that did not land or a project that is coming due. Send the syllabus before your first session so the plan follows your course.
  2. The idea first. George explains the idea behind a feature of the language with a short program you can run in your head, so the rule is something you can rebuild and not only recall.
  3. You solve, George asks. You write or trace code out loud on a shared screen. George asks what each line does and what the variables hold at that point, and stops you at the first wrong prediction.
  4. Mistakes first. George goes back over the problems that went wrong, so the next session starts from them.

Two programming problems, solved the way a session solves them

These are our own problems. Each one shows the habit a session builds: predict by hand, then check the prediction.

Trace a loop on paper

What does this Python code print? total = 0, then for i in range(1, 6): if i % 2 == 0: total += i * i, and finally print(total).

  1. Expand the range: range(1, 6) gives 1, 2, 3, 4, 5, because the end value is not included.
  2. Read the test: i % 2 == 0 is true for even numbers, so only 2 and 4 pass.
  3. Keep a table of total: it starts at 0, stays 0 for i = 1, becomes 0 + 2 * 2 = 4 for i = 2, stays 4 for i = 3, becomes 4 + 4 * 4 = 20 for i = 4 and stays 20 for i = 5.
  4. The print comes after the loop, so it shows the final value only.

It prints 20. The common slip is to include 6 in the range or to add the numbers instead of their squares, which is why a session keeps the table of values on the screen.

Two names for one list

What does this code print? a = [1, 2, 3], then b = a, then b.append(4), and finally print(a). How would you get a copy that stays separate?

  1. Read b = a as "give the list a second name", because assignment does not copy a list.
  2. Both names now refer to the same list object in memory.
  3. The append method changes that object in place, so the change is visible through either name.
  4. To keep a separate copy, build one: b = a.copy() or b = list(a), and then calling append on b leaves a alone.

It prints [1, 2, 3, 4]. A session draws two arrows pointing at one box, because that picture explains this result and a whole family of bugs with the same cause.

What George does and does not do

When you bring a graded problem, George works a different one of the same kind with you, and you then solve yours on your own.

Book

Sessions are 60 or 90 minutes by video. Start with a first session; prices and package sizes are on the college coursework tutoring page and the packages page. Other college courses are listed under college courses.