Post image
Light Mode
Dark Mode
Python More: Itertools, Indentation, and Insights

Hello, checkiomates🐱‍👤!

This week, we expand standard library functionality by generalizing itertools.pairwise, revisit the foundational concept of Python indentation, and hear from Guido van Rossum on why developers continue to flock to Python. Our mission challenges your string manipulation skills to extract a hidden message by pulling characters at a specified interval.

💡TIP

If you find an interesting solution, you may add it to your bookmarks by clicking the flag near solution title. You can find all your bookmarked solutions by clicking your nickname and then "Bookmarks".
If you want to discover all CheckiO features, visit our tutorial. It's a longread, but it's worth it!

🏁 MISSION

Extraction I: Secret Message in the Noise by freeman_lex -

A spy has hidden a secret message inside a string text of random characters. Your task is to extract the hidden message by pulling out every step-th character.

extraction("hxeqlzlzow!", 2) == "hello!"
extraction("abcdefr", 2) == "acer"
extraction("dbcoefc", 3) == "doc"

📖 ARTICLES

Generalising itertools.pairwise -

In this tutorial you will learn to use and generalise itertools.pairwise. You will understand what itertools.pairwise does, how to use it, and how to implement a generalised version for when itertools.pairwise isn't enough.

How to Properly Indent Python Code -

Learn how to properly indent Python code in IDEs, Python-aware editors, and plain text editors—plus explore PEP 8 formatters like Black and Ruff.

Why developers still flock to Python: Guido van Rossum on readability, AI, and the future of program -

This interview with Python creator Guido van Rossum covers everything from writing readable code to AI and the future of programming.

👩‍💻CODE SHOT

What do you think the following code does?

def checkio(values: list) -> list:
    prev_value = -1000
    return [prev_value := v for v in values if prev_value <= v]

🙌 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: Dec. 8, 2025, 5:23 p.m.
0
41
User avatar
freeman_lex