
Hello, checkiomates🐱👤!
This week in Python, we explore the intricacies of nested loops, learn about the history and impact of Python from "Python: The Documentary", and delve into the world of hashing techniques. To round it all out, we present a fun mission: recreating the classic Unix "cowsay" program in Python.
💡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
What Does the Cow Say? by Cjkjvfnby -
The original Cowsays are written in the Perl programming language, and as such are easily adaptable to system tasks in Unix. Now you will write your own realization for this classic unix program. You are given some text and your function should format it in the "cows" speech.
cowsay('Checkio rulezz') == r''' ________________ < Checkio rulezz > ---------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || '''
📖 ARTICLES
Learn how to use nested loops in Python to iterate over multiple sequences and perform repeated actions efficiently in your programs.
There’s a new documentary in the works on Python and its popularity. This is the official trailer.
The Guide to Hashing I Wish I Had When I Started -
Learn the basics of hashing in this beginner-friendly guide. Discover what hashing is, how it works, its key principles, common algorithms, and practical uses for password storage and file integrity.
👩💻CODE SHOT
What do you think the following code does?
def ??????(a: str) -> dict: result = {} for line in a.split("\n"): if line: key, value = line.split(": ") result[key] = int(value) if value.isdigit() else value return result
🙌 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! ⤵