Post image
Light Mode
Dark Mode
Prices Go Up September 1 — Lock In Your Rate Now!

Hello, checkiomates🐱‍👤!

Since the day CheckiO launched, our subscription price has never changed. But starting September 1, we’ll be updating the price for all subscriptions:

Awesome Monthly: $2.99 → $4.99

Awesome Half-Year: $14.99 → $24.99

Awesome Year: $24.99 → $49.99

Awesome Teacher: $99.99 → $499.99

We’re also making subscriptions even better: one subscription now gives you full access to everything on CheckiO — PyCheckiO, JsCheckiO, and any future services we launch.

💡 Renew or subscribe before September 1 to keep the current lower price for the next year.

In this weekly digest unlock the hidden potential within your Python projects as we dissect the crucial role of __init__.py in structuring your code. We then navigate the powerful, yet delicate, art of monkey patching, a technique to modify behavior on the fly, and marvel at the efficiency of f-strings for pristine output. To put your logical skills to the test, our mission challenges you to predict the exact phase a pair of competitors would meet in a World Cup knockout bracket.

💡TIP

At your profile, after clicking on big percent number of your progress, you may see module and methods you have already used in your shared solutions.
If you want to discover all CheckiO features, visit our tutorial. It's a longread, but it's worth it!

🏁 MISSION

Cup Stage by freeman_lex -

Consider a world cup stage where players are competing in a knockout format: they face each other according to their positions in the bracket in a single-elimination match. The winners of each match advance to the next round until a champion is determined. Look at the example for 16 players. Given two players' positions in the bracket and the total number of players, your program should determine what phase (final, 1/2, 1/4 etc.) they will face each other in, assuming they both win their matches until they meet.

cup_stage(5, 7, 8) == "1/2"
cup_stage(1, 2, 2) == "final"
cup_stage(13, 14, 32) == "1/16"

📖 ARTICLES

What Is Python's __init__.py For? -

Learn to declare packages with Python’s __init__.py, set package variables, simplify imports, and understand what happens if this module is missing.

Monkey Patching in Python: A Powerful Tool -

In Python, monkey patching refers to the practice of modifying or extending code at runtime. This means you can change how modules, classes, or even functions behave — without modifying the original source code.

How well do you know f-strings? -

An interactive quiz website that tests your knowledge of Python f-string edge cases and advanced features. This quiz explores the surprising, confusing, and powerful aspects of Python f-strings through 20 carefully crafted questions. While f-strings seem simple on the surface, they have many hidden features and edge cases that can trip up even experienced Python developers.

👩‍💻CODE SHOT

What do you think the following code does?

from typing import Iterable
from itertools import groupby


def checkio(items: list[int]) -> Iterable[int]:
    
    yield from (val for val, _ in groupby(items))

🙌 Thanks for your attention! Hope to meet you at CheckiO, as well as at our Instagram and Twitter! We are really interested in your thoughts! Please, leave a comment below! ⤵

Created: July 21, 2025, 4:55 p.m.
2
41
User avatar
freeman_lex