Ending Up: the example of this page is wrong because 1 up to 4 or "Charlie" is "harl" not "har"


#1



Replace this line with your code.


#2

Hello @sayura,

In python, string slicing slices upto but not including the index positions of the string...

The string "PYTHON" has six characters,
numbered 0 to 5, as shown below:

+---+---+---+---+---+---+
| P | Y | T | H | O | N |
+---+---+---+---+---+---+
  0   1   2   3   4   5

"PYTHON"[1:4] = "PYTHON"[1] + "PYTHON"[2] + "PYTHON"[3] = "Y" + "T" + "H"

Hope this clears out your problems, @sayura...