Communities for your favorite technologies. Explore all Collectives
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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.