2. Slicing¶
Slice from the first index to the one before the second
Activity: CodeLens 2.1 (cl_l18_2a_en)
We can omit indices by substituting the corresponding end and we can also have negative indices: -1 is the last one, -2 the penultimate
Activity: CodeLens 2.2 (cl_l18_2b_en)
2.1. Slice increment¶
I can use an increment when slicing the string
Activity: CodeLens 2.1.1 (cl_l18_2c_en)
Check if a word is a palindrome
You have attempted of activities on this page