
Hello, checkiomates🐱👤!
Try to master efficient techniques for looping in reverse, delve into the power and proper use of the modern Walrus operator (:=), and test your knowledge of absolute values with a quick quiz. Additionally, we present a fascinating mission: converting a Cistercian number representation back into its integer equivalent, requiring you to decipher this unique medieval notation.
💡TIP
At every mission page, under the editor window, there is a terminal window. If you want to discover all CheckiO features, visit our tutorial. It's a longread, but it's worth it!
🏁 MISSION
Cistercian Converter II: Cistercian To Integer by freeman_lex -
The Cistercian number-notation was invented in the late 13th century by Cistercian monks, near the border region between France and Belgium. For two centuries, the number system was used by monks belonging to the order across all of Europe as an alternative to the well-known Roman numerals and the ‘novel’ Hindu-Arabic numerals, the latter of which were just beginning to get adopted at the time. In the mission you are given a Cistercian number and you need to return the respective integer.
Cistercian([ [" ", " ", "0", " ", "0"], [" ", " ", "0", "0", " "], [" ", " ", "0", " ", " "], [" ", " ", "0", " ", " "], [" ", " ", "0", " ", " "], [" ", " ", "0", " ", " "], [" ", " ", "0", " ", " "], ]) == 4 Cistercian([ ["0", "0", "0", " ", " "], [" ", "0", "0", " ", " "], [" ", " ", "0", " ", " "], [" ", " ", "0", " ", " "], [" ", " ", "0", " ", " "], [" ", " ", "0", " ", " "], [" ", " ", "0", " ", " "], ]) == 50
📖 ARTICLES
Many iterables can be reversed using the built-in reversed function whereas Python’s slicing syntax only works on sequences. Learn how to reverse your data.
Mastering the Walrus Operator (:=) in Python 3.8+ -
While it may look unusual at first glance, the walrus operator brings clarity and efficiency to certain programming constructs by reducing redundancy and improving performance in specific use cases. In this post, we’ll explore what it is, why it was introduced, and how you can use it effectively.
How to Find an Absolute Value in Python Quiz -
By working through this quiz, you’ll revisit key concepts such as how to use Python’s built-in functions to compute absolute values, apply them in mathematical operations, and handle different data types effectively.
👩💻CODE SHOT
What do you think the following code does?
??????????= lambda: (lambda x: x+str((x,)))('quine = lambda: (lambda x: x+str((x,)))',)
🙌 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! ⤵