• Learn Correct Line Breaking For Better Readability And Use It To Get A Single Word!

Hello, checkiomatesπŸ±β€πŸ‘€!

In this lightweight digest read about a correct way of breaking ling lines and try to return the whole word having index of string in our new mission!

πŸ’‘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

Word boundaries by gleb10101010101 -

You are given a string (words) with some words separated by spaces and an integer (n) β€” index of a symbol in this string. You need to print the word (part of words, boundaried by spaces) that contains the symbol under this index. If no element matches this index, return None. Note: Index is 0-based and refers to the position of a character in the string (including the space characters).

boundaries(8, "+ - * / ( ) = 0") == "("
boundaries(12, "How do you do?") == "do?"
boundaries(6, "This is a very strange test...") == "is"

πŸ“–ARTICLE

Breaking up long lines of code in Python -

How can you put a line break inside a line of Python code without causing an error? Use an implicit line continuation! Read more...

πŸ‘©β€πŸ’»CODE SHOT

Here is simple math and physics for the ancient task...How do you think, what the following code does?

def ???????(v1: int, v2: int, dt: int) -> float:
    
    return v1* dt/(v1 - v2)

πŸ™Œ 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