Pyglatin 10/11. Why 4?


I learned that in Python, I should match the alphabet with the number starting from ZERO.
But “Charlie”[1:4] is not “harl” but “har”. I don’t understand why this happens :frowning:

What’s wrong? Help my!




is string slicing, the general syntax is:


but its values lesser then (<) the stop value, not lesser then or equal to.


Ohhh god I got it on later lesson XD… Thanks a lot to your kindness :slight_smile:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.