-
Higher Stakes In Dividing Gold And Checking Your Knowledge In Quiz!
Hello, checkiomates🐱👤!
Today we offer you a tougher version of mission about dividing gold among pirates and something new: a short but thrilling quiz about string and character data!
💡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 nickame and then "Bookmarks". If you want to discover all CheckiO features, visit our tutorial. It's a longread, but it's worth it!
🏁MISSION
Divide Gold: Rates Are Rising by freeman_lex -
This mission is a continuation of the story about a team of pirates. In case the coins cannot be divided evenly using this method, the Captain, being the only person with a gun on board, decided to use his weapon effectively and mercifully - to minimally decrease the number of sailors to get an integer result of shares. However, the sailors were not happy with such a prospect and secretly decided that if the given number of coins could be evenly divided without the Captain's share, they would pounce and remove him from leadership.
winner_share(15, 4) == 6 winner_share(16, 4) == 4 winner_share(100, 11) == 20
📖ARTICLE
Python Strings and Character Data Quiz -
This quiz will evaluate your understanding of Python’s string data type and test your knowledge about manipulating textual data with string objects. You’ll cover the basics of creating strings using literals and the str() function, applying string methods, using operators and built-in functions with strings, indexing and slicing strings, and more!
Python range(): Represent Numerical Ranges -
Master the Python range() function and understand its inner workings. While ranges are most commonly used in loops, this tutorial will teach you not only how to iterate over ranges but also how to recognize when other options might be more suitable.
10 Python programming optimisation techniques. -
Optimization should be your final step, but when you reach that point, what can you do? This article explores ten different techniques to improve memory usage and code performance.
👩💻CODE SHOT
How do you think, what the following code does?
def ???????(text: str, symbol: str) -> int|None: try: return text.index(symbol, text.index(symbol) + 1) except ValueError: return None
🙌 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