Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
You've got it right there except for "end". ItsIt's called slice notation. YourYour example should read.:
new_sub_string = myString[2:]
If you leave out the second paramparameter it is implicitly the end of the string.
You've got it right there except for "end". Its called slice notation. Your example should read.
If you leave out the second param it is implicitly the end of the string.
You've got it right there except for "end". It's called slice notation. Your example should read:
If you leave out the second parameter it is implicitly the end of the string.