MyLeoNes™

Count who passed — Software Developer · Pretender

A teacher using the fictional Byte & Acorn quiz app wants to know how many students reached the pass mark. The function is almost ready, but three pieces are missing. Fill the blanks so every check passes.

Code checks · ~4 min

Your role

You're the developer (in this game).

Your goal

Fill the blanks so every check passes.

What you know

Limits

Success looks like

Skills you used

In real life

Counting things that meet a condition is one of the most common patterns in programming — from counting unread messages to finding products that are in stock.

Software Developer

Build the apps and tools people use every day.

Explore next

Keep exploring

Other languages

Loading MyLeoNes™…