-
Count Sides Of Polygon Using The Best Optimization Technics!
Hello, checkiomates🐱👤!
This digest is especially rich and diverse! We offer you to chck you knowledge of built-in Exceptions in a dedicted quiz, try to solve a new challenging geometrical mission and once again see the dominance of Python language in a IEEE Spectrum’s 11th annual rankings!
💡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
Number of Sides by kurosawa4434 -
You are given a list of coordinates of the vertices of the triangles (A list of tuples of 3 tuples of 2 integers) into which a polygon is divided. These share at least one side with the other triangle (which also shares two vertices). You have to return the number of sides of the original polygon as an integer.
number_of_sides([((1, 1), (1, 3), (3, 3)), ((1, 1), (3, 1), (3, 3))]) == 4 number_of_sides([((1, 1), (2, 1), (2, 3)), ((2, 1), (2, 3), (3, 1))]) == 3
📖ARTICLES
10 Python programming optimisation techniques -
Let’s explore 10 Python programming optimisation techniques that can help you write more efficient and performant code. These techniques are crucial for developing robust applications that meet performance requirements while remaining scalable and maintainable over time. These techniques can also be applied to other programming languages by following the best practices.
The Top Programming Languages 2024 -
Welcome to IEEE Spectrum’s 11th annual rankings of the most popular programming languages. As always, we combine multiple metrics from different sources to create three meta rankings. The “Spectrum” ranking is weighted towards the profile of the typical IEEE member, the “Trending” ranking seeks to spot languages that are in the zeitgeist, and the “Jobs” ranking measures what employers are looking for.
Python's Built-in Exceptions: A Walkthrough With Examples Quiz -
In this quiz, you’ll test your understanding of the most commonly used built-in exceptions in Python. Exception handling is a core topic in Python. Knowing how to use some of the most common built-in exceptions can help you to debug your code and handle your own exceptions.
👩💻CODE SHOT
How do you think, what the following code does?
def ????????(values: set[int], one: int) -> int: return min(values, key=lambda k: (abs(k-one), k))
🙌 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! ⤵
Welcome to CheckiO - games for coders where you can improve your codings skills.
The main idea behind these games is to give you the opportunity to learn by exchanging experience with the rest of the community. Every day we are trying to find interesting solutions for you to help you become a better coder.
Join the Game