Cognito Coding

Cognito Coding Cognito Coding — learn to code through games, challenges and real builds. No fluff, no theory dumps. Just you, a screen, and stuff that actually works.

One to One Tutoring Available, I tutor every day, limited spaces available. Keeping Coding Fun.

A kid typed 2, then 3, and his program answered 23.Not 5. Twenty-three.He hadn't done anything wrong. Nobody had told hi...
18/09/2026

A kid typed 2, then 3, and his program answered 23.

Not 5. Twenty-three.

He hadn't done anything wrong. Nobody had told him that when you type something in, it arrives as writing, not as maths. The two numbers just got slid together like two Post-its on a fridge.

I used to explain that with words and watch it slide straight off. Now I hand over an object instead.

A shop price label. It says £3 — but it's ink on paper. The till has to read it before it can add it to anything.

That landed in about nine seconds.

It's how the whole Coding Concepts run on the channel works now. A library card for borrowing code. A name badge for dropping a name into a sentence. A print menu for counting up to a number. The price label one went up on Monday.

All about a minute long, all on .

What's the everyday object or comparison that finally made something click for you? Drop it below 👇

Catching up on a box set? You've seen episode 1, you're saving the finale, and tonight it's episodes 2, 3 and 4.You don'...
17/09/2026

Catching up on a box set? You've seen episode 1, you're saving the finale, and tonight it's episodes 2, 3 and 4.

You don't throw the other two away. You just pick out the middle.

Python can do exactly that with a list. It's called slicing:

episodes = ["Pilot", "The Heist", "The Twist", "The Chase", "Finale"]
print(episodes[1:4])

Out comes The Heist, The Twist and The Chase. The rest of the list hasn't moved.

Two things catch everyone the first time:
✅ Positions start at 0, so 1 is the second item
✅ The 4 is where it stops, and it doesn't take the 4th

Try this if you're sitting with a learner: ask them to guess what prints before they run it. Then print the whole list and show them all five are still there.

Which one caught you out first: counting from 0, or where it stops? 👇

Quick one for anyone learning to code (or teaching someone who is).I was marking a pile of quizzes and two rows looked e...
16/09/2026

Quick one for anyone learning to code (or teaching someone who is).

I was marking a pile of quizzes and two rows looked exactly the same at a glance. Sam got 0. Priya hadn't handed hers in yet.

If I'd written 0 for both, I'd have told a fib about Priya.

Python has a word for that blank: None. It means "nothing's here yet" — not "the answer is zero".

mark = None
if mark is None:
print("Not marked yet")

Try it with a beginner: run it, then change None to 0 and run it again. The message vanishes. That little moment is the whole lesson — a 0 is a real score, a blank is a gap you haven't filled.

What's a coding mix-up that took you ages to spot? 👇

How long did you fight with quote marks before someone showed you the easy way?I watched a beginner try to print a greet...
15/09/2026

How long did you fight with quote marks before someone showed you the easy way?

I watched a beginner try to print a greeting last week. She had the name saved fine. Then she spent ten minutes juggling plus signs and quote marks trying to get it into a sentence.

Here's the thing that made it click for her.

A conference name badge. Nobody prints a fresh one for every guest — they print thousands that all say HELLO my name is, with a blank left in the middle. The card never changes. You only ever write in the gap.

Python works the same way. Write the sentence once, leave a gap where the value goes, and it drops in every time the code runs.

She got it in about twenty seconds once she saw the badge.

Full short on the Cognito Coding channel: https://youtube.com/shorts/gs2JOpP3ocA

What's the coding idea that finally clicked for you — and what was the thing that made it land? 👇

14/09/2026

A price label is just ink on paper. It says £3, but it can't add itself to anything — the till has to read it first.

That's why a program asked for two numbers, given 2 and then 3, answers 23 instead of 5. It treated what you typed as writing, not as maths.

Full explainer on YouTube: https://youtube.com/shorts/4HuQz7GJo2Y

Two things I used to teach coding this week: a name badge and a print menu.Monday I put up the HELLO MY NAME IS sticker....
11/09/2026

Two things I used to teach coding this week: a name badge and a print menu.

Monday I put up the HELLO MY NAME IS sticker. Nobody prints a fresh badge for every guest at an event — they print a stack with a blank in the middle and write in the gap. That's how a program drops an answer into a sentence. Write the sentence once, leave a gap, fill it.

Thursday was the print menu. When you print pages 1 to 20 you don't type out every number in between. You fill in the first page and the last page, and the printer sorts out the middle. Code counts the same way — two numbers, and it handles the rest.

Both went up as shorts on the channel. Same shape every time: one idea, one picture, about thirty seconds.

I teach it this way because a beginner handed a code example has two problems at once — working out the idea, and working out the code carrying it. Give them the badge first and there's only one left.

The lot's here if you fancy them: https://www.youtube.com/

What everyday object would you use to explain coding to a total beginner? I'm always after new ones 👇

My student typed 2, then 3, and her program answered 23.She was convinced she'd broken Python. She hadn't — it did exact...
10/09/2026

My student typed 2, then 3, and her program answered 23.

She was convinced she'd broken Python. She hadn't — it did exactly what she'd asked it to do.

Here's the bit nobody warns beginners about: anything you type into a program arrives as writing, not as a number. Join two bits of writing and they stick end to end. 2 and 3 gives you 23.

Think of a Post-it on the fridge with 2 on it, and another with 3. Slide them together and you haven't got 5. You've got two notes touching. Someone still has to read them before there's any maths.

In Python that reading step is int(). Wrap the writing in it and you get a number you can do sums with.

age = "17"
print(int(age) + 1)

That gives you 18. Those quote marks are the whole tell — "17" and 17 look nearly the same and behave nothing alike.

My honest advice: let a beginner hit this one before you explain it. The wrong answer teaches it far better than a warning does.

What's a bug that taught you more than the working code ever would have? 👇

10/09/2026

Printing pages 1 to 20 — do you type out every number? Course you don't. You put in the first page, you put in the last page, and the printer sorts out everything else.

That is exactly what range() does in code. Two numbers in, the whole count out.

Full explainer: https://youtube.com/shorts/3Z4i5E1QWHg

Can I show you something small that saves beginners a lot of typing?I watched someone type out five separate lines of co...
09/09/2026

Can I show you something small that saves beginners a lot of typing?

I watched someone type out five separate lines of code last week, just to show the numbers 1 to 5. Five near-identical lines. There was a typo in the fourth one.

He hadn't done anything wrong. He just hadn't met the tool that does the counting for him yet.

Think about a book of raffle tickets. Nobody sits down and writes 1 to 100 out by hand — the book turns up pre-numbered and you tear them off one at a time, in order.

Python does the same thing. You say where to start, you say where to stop, and it hands you the numbers one at a time:

for n in range(1, 6):
print(n)

Two lines. You get 1, 2, 3, 4, 5.

And here's the bit that catches everyone exactly once — the second number is where it stops, and it stops just before it. So 6 never turns up. You only get caught by that the one time.

If you're sitting with a beginner this week: get them to write it out the long way first and let it feel tedious. Then show them the short version. The tedious bit is what makes the short one land.

What's a shortcut you only appreciated after doing it the hard way first? 👇

He spent nearly an hour writing code that already existed.One of the beginners I teach wanted his quiz to pick a random ...
08/09/2026

He spent nearly an hour writing code that already existed.

One of the beginners I teach wanted his quiz to pick a random question, so he wrote his own shuffle. Properly worked at it. And it worked.

Then I showed him the two lines that do the same job, and you could watch him deciding whether to be pleased or annoyed 😅

Here's the bit nobody tells you early enough: nobody writes a whole book just to read one. You show your card and borrow one. Code's the same — someone's already written the fiddly bit and left it on the shelf.

That's what this week's short is about. Two lines, one idea, about thirty seconds.

https://www.youtube.com/shorts/4vtJG5jXI1Y

What's the thing you spent ages building before finding out it already existed? 👇

Address

Hartlepool

Alerts

Be the first to know and let us send you an email when Cognito Coding posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Shortcuts

Share