Horizontal movement

If we want to specify an index which is a certain number of characters forward from an existing index, we can append +nc, where n will be the amount of characters. Likewise, -nc will move backward n characters.

Suppose we want the range of the word Python, which we know begins at index 1.4. We could cast this to a float, add 0.6 to it (since we know it is six characters long), and then cast back to a string. However, this becomes tedious and is unnecessary. Instead, we can refer to the ending index of this word with 1.4+6c.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset