Daily coding challenge

One coding question a day, explained properly

Each day brings a single multiple-choice question on Python, JavaScript, algorithms or the ideas behind AI, written so that careful reading beats guessing. Pick an answer, then see why the right option works and exactly why each of the others does not.

0 Day Streak
A new question every day
Loading... Coding
Easy

Loading today's question...

In short

The Modern Age Coders daily coding challenge is a free, one-question-a-day quiz on Python, JavaScript, algorithms and the basics of AI, with an explanation for every option. It starts easy early in the week and builds to a very hard question on Saturday, so it suits young coders who have written their first programs as well as students and developers who want a short daily workout.

How it works

One question a day, explained properly

A new question every dayEveryone in the world sees the same question on the same day, so it is easy to compare answers with a friend or a classmate.
Harder through the weekEasy at the start of the week, harder by midweek, and a stretch question on Saturday. MonEasyTueMediumWedHardThuMediumFriEasySatUltraSunEasy
Every option explainedPick an answer and see why it is right, or exactly which misunderstanding leads to each wrong option.
Your streak, on your deviceGet the daily question right on consecutive days to build a streak. It is saved only in your browser, with no sign-up.
The method

How to get better at coding problems

1

Trace the code by hand before you answer

Most code-reading questions are lost by skimming. Take a pencil and keep a small table of every variable as each line runs. Try it on this: a = [1, 2, 3], then b = a, then b.append(4), then print(a). If you write a and b as two separate boxes you will answer [1, 2, 3]. If you notice that b = a gives the same list a second name, you will answer [1, 2, 3, 4], which is correct. Tracing feels slow at first, but it quickly becomes the fastest way to be right, and it is exactly what professional programmers do when a bug makes no sense.

2

Predict first, then run it

Before you choose an option, say out loud what you expect the code to print. After you answer, paste the snippet into a Python shell or your browser console and check. The gap between your prediction and the real output is where learning happens. For example, many people expect '3' + 4 in JavaScript to give 7, but it gives '34', because the number is turned into text and joined on. Once you have been surprised by that once, you will spot type coercion in every question that follows. Keep a short note of each surprise; that list becomes your personal revision sheet.

3

Study the wrong options, not just the right one

Every option in the daily challenge comes with its own explanation, and the wrong ones are worth the most. Distractors are built from real, common mistakes: thinking range(1, 5) includes 5, mixing up == and === in JavaScript, or forgetting that a Python function with no return statement gives back None. When you read why an option is wrong, ask yourself whether you could have made that mistake in your own code. If the answer is yes, write a two-line program that shows the trap. Turning a mistake into a tiny example is how it stops catching you.

4

Learn the handful of rules behind most surprises

A small set of ideas explains a large share of tricky questions: mutable versus immutable values, variable scope, truthy and falsy values, integer versus float division, and the order in which asynchronous code runs. Take setTimeout(f, 0) followed by console.log('hi'). Even with a delay of zero, 'hi' prints first, because the timer callback waits until the current code has finished. When a question confuses you, try to name which of these rules it is testing. Over a few weeks you will find that new questions look much less new, because the same few rules keep coming back.

5

Think about how the work grows

The harder midweek and Saturday questions often ask about efficiency rather than output. The habit to build is asking how the amount of work changes as the input gets bigger. Checking every pair in a list of 1,000 items with two nested loops means about a million comparisons; doubling the list makes it roughly four times slower. Putting the items in a set and checking membership instead keeps the work close to proportional to the list size. You do not need formal Big O notation to start; just count the loops, notice what is inside them, and ask what happens at ten times the size.

6

Practise little and often, then build something

Ten focused minutes a day does more than one long session a month, which is why the challenge gives you one question and a streak. Your streak is kept only in your browser on this device, so there is nothing to sign up for. Difficulty rises through the week, with Saturday the hardest, so a streak also means meeting every level. To make the practice stick, use each day's idea in something of your own: after a question on list comprehensions, rewrite a loop from an old project as a comprehension. Puzzles sharpen your reading, but writing real programs, and fixing them when they break, is what turns that skill into fluency.

What the questions cover

Topics in the coding question bank

The bank holds 210 questions across these areas, so the daily question changes as the weeks go on. To learn any of them properly, read the free coding notes, one chapter at a time with worked examples and practice.

  • Python
  • AI
  • JavaScript
  • Python Semantics
  • Scratch Logic
  • Algorithms
  • Dynamic Programming
  • Complexity
  • Data Structures
  • JavaScript String Methods
  • Bit Manipulation
  • Python Basics
  • JavaScript Array Methods
  • JavaScript Array Spread
  • JavaScript Array Reduce
  • JavaScript Math Object
  • JavaScript Array Concat
  • JavaScript Ternary Operator
Before you answer

Three coding traps that catch good students

Go further, live

Courses that build these skills

All coding courses →

Keep practising

More daily challenges and guides

Good to know

Questions, answered

Is the daily coding challenge free?

Yes. It is completely free, and there is no sign-up, account or email address needed. Open the page, read the question and choose an answer. The explanation appears straight away.

What age or level is it for?

The easy days suit children and teenagers who have started learning Python or JavaScript and can read a few lines of code. The hard days, especially Saturday, are meant to stretch confident students, university learners and working developers. Younger beginners often enjoy the easy days with a parent or teacher talking through the code alongside them.

How does the difficulty change through the week?

Sunday, Monday and Friday are Easy, Tuesday and Thursday are Medium, Wednesday is Hard and Saturday is Super Ultra Hard. Topics range from Python lists and JavaScript strings on the easy days to algorithms, memory, asynchronous code and neural networks later in the week.

What happens if I get it wrong?

You see the correct answer and an explanation of every option, including why yours did not work, which is often the most useful part. Your streak counts the days in a row that you answer correctly, so a wrong answer means today does not count and the streak starts again from one with your next correct day. The streak is stored only on your device.

Can I practise more than one question a day?

Yes. After you answer the daily question, press Practise another question to try more from the bank. Extra practice does not change your streak: only the daily question counts, and a new one appears tomorrow.

How does this link to Modern Age Coders classes?

The daily challenge is a free taste of how our teachers explain code: always the reason, never just the answer. In live online classes a teacher works with your child or with you on Python, JavaScript, web development, AI and more, at your own pace. To try a class, book a Priority Demo for a live class today or tomorrow, or join the free demo queue, which takes at least 2 months.

Want a teacher who explains the why?

A daily question builds the habit. Live classes build the understanding: a real mentor who asks how you are thinking, spots the exact step that slips, and takes you further in coding than practice alone.

Keep exploring Modern Age Coders

Related courses and guides

Learn more

Free resources

From the blog

Start here

Ask Misti AI
Chat with us
Enroll Watch Class Priority Demo Enrol Book a Demo Watch Class WhatsApp Book demo today