I want to get a new string from the third character to the end of the string, e.g. myString[2:end]. If omitting the second part means ‘to the end’, and if you omit the first part, does it start from the start?
I want to get a new string from the third character to the end
Share
Python calls this concept ‘slicing’ and it works on more than just strings. Take a look here for a comprehensive introduction.