
Hello, checkiomates🐱👤!
In this edition, we explore the cutting-edge of Python development. Learn modern Python practices for writing clean and efficient code, discover how Python continues to evolve with improved performance and popularity in 2024, and check out the top Python libraries shaping the year ahead. Finally, put your problem-solving skills to the test with a mission to find evenly spaced trees, blending logic and Python expertise.
💡TIP
You may click on any mission tag and see all missions, where this tag is present! If you want to discover all CheckiO features, visit our tutorial. It's a longread, but it's worth it!
🏁MISSION
Find Evenly Spaced Trees by kurosawa4434 -
You have to find evenly spaced trees in a grove. You are given the position of the trees (a set of integers) as input values. You have to find and return the maximum number of the evenly spaced trees. If the answer is less than or equal to 2, return None.
find_evenly_spaced_trees({0, 2, 3, 5, 9}) == None find_evenly_spaced_trees({0, 3, 6, 8, 11, 14, 17}) == 4 find_evenly_spaced_trees({0, 4, 6, 8, 12, 16, 18}) == 5
📖ARTICLES
Modern Good Practices for Python Development -
This is a very detailed list of best practices for developing in Python. It includes tools, language features, application design, which libraries to use an more.
Python in 2024: Faster, more powerful, and more popular than ever -
Over the course of 2024, Python has proven again and again why it’s one of the most popular, useful, and promising programming languages out there. The latest version of the language pushes the envelope further for speed and power, sheds many of Python’s most decrepit elements, and broadens its appeal with developers worldwide. Here’s a look back at the year in Python.
Top Python libraries of 2024 -
For the past ten years, Tyrolabs has put together a list of their favorite Python libraries of the year. This list includes ten general purpose libraries and ten more specific to AI/ML and Data.
👩💻CODE SHOT
How do you think, what the following code does?
def ???????(data: list[tuple[int, int]]) -> list[tuple[int, int]]: res = [] start = end = None for s, e in data: if not start: start, end = s, e elif s - end < 2: end = max(end, e) else: res.append((start, end)) start, end = s, e if start: res.append((start, end)) return res
🙌 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! ⤵