Post image
Light Mode
Dark Mode
Python's Generative Horizon

Hello, checkiomates🐱‍👤!

This week's digest explores the vast capabilities of Python, from answering the fundamental question of "What can I do with Python?" to demonstrating a practical use case: generating quality test data with the Faker library. We also provide a quiz for beginners to test their first steps in the language. Our mission challenges your mathematical and time-based logic with a problem to calculate the Sun's angle above the horizon based on the time of day.

💡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

Sun Angle by likewind -

Your task is to find the angle of the sun above the horizon knowing the time of the day. Input data: the sun rises in the East at 6:00 AM, which corresponds to the angle of 0 degrees. At 12:00 PM the sun reaches its zenith, which means that the angle equals 90 degrees. 6:00 PM is the time of the sunset so the angle is 180 degrees. If the input will be the time of the night (before 6:00 AM or after 6:00 PM), your function should return - "I don't see the sun!".

sun_angle("07:00") == 15
sun_angle("12:15") == 93.75

📖 ARTICLES

What Can I Do With Python? -

Learn how Python builds software, powers AI, automates tasks, and drives robotics. Discover tools and projects to guide your programming journey.

Faker: Generate Realistic Test Data in Python -

If you want to generate test data with specific types and realistic characteristics Faker can help you do that.

How to Use Python: Your First Steps Quiz -

Ready to check your foundation in Python? This quiz reviews core beginner topics like variables, keywords, strings, and errors. You’ll also practice commands and tools that help you get started quickly.

👩‍💻CODE SHOT

What do you think the following code does?

from itertools import groupby


def checkio(digits: str) -> str:
    
    return "".join(str(len(list(counter))) + current
                   for current, counter in groupby(digits))

🙌 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: Nov. 3, 2025, 6:27 p.m.
2
41
User avatar
freeman_lex