compalecof

Subjects / Coding

Learn to code from YouTube tutorials without getting stuck

In coding tutorials one small detail changes everything. When the output surprises you, pause and ask Cof about the line on screen. It reads the frame and what the teacher just said.

Python for beginners: for loops and range()Paused at 4:26

“so let's write for i in range(1, 5): print(i) and run it. And you can see we get 1, 2, 3, 4”

Youwhy doesn't it print 5?

CofBecause range stops before its second number. So range(1, 5) gives 1 through 4; use range(1, 6) to include 5.

An example conversation with Cof.

Or ask on the board

compalecof is an AI tutor that explains by drawing. On the board, ask your question and Cof draws the answer step by step on a notebook page, like a teacher at a whiteboard. It opens in your browser, nothing to install.

Cof’s lesson page on binary search: finding 9 in a sorted list by checking the middle and halving the search
Cof’s lesson page on binary search: finding 9 in a sorted list by checking the middle and halving the search

What Cof writes on this page: How binary search works

  1. Sorted list: 1, 3, 5, 7, 9, 11, 13. Target: 9.
  2. Pick the middle: check 7. Since 9 is larger, discard 1, 3, 5 and 7.
  3. Halve again: in the remaining half check 11. Since 9 is smaller, keep only the values below 11.
  4. Find the target: only 9 is left, so the search is complete.
  5. Key idea: each comparison with the middle value removes half of the remaining candidates.

All lesson pages

Ask Cof on the boardHow the board works

How Cof helps

How to start

  1. Add compalecof to Chrome and sign in with a free account.
  2. Open a YouTube video and click Cof, the little coffee cup, to wake it up.
  3. Pause where you got stuck and ask in your own words.
Open the board Add to Chrome — free All questions

Free plan: 2,000 credits a month.

Questions

Can Cof read code in the video?

When it needs to, Cof looks at a still frame of the video, so it can read the code that's on screen at that moment, together with the subtitles.

Does Cof write the whole project for me?

Cof can write code when you ask, but it's built to explain, so you understand the tutorial and can keep going on your own.

Other subjects

Math Physics Biology History English German Spanish