Skip to main content
Active reading. [(its = possessive, it's = "it is" or "it has". See for example <http://www.wikihow.com/Use-Its-and-It%27s>.)]
Source Link
Peter Mortensen
  • 31.5k
  • 22
  • 110
  • 134

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.

new_sub_string = myString[2:]

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:

new_sub_string = myString[2:]

If you leave out the second parameter it is implicitly the end of the string.

Source Link
bouvard
  • 3.9k
  • 29
  • 29

You've got it right there except for "end". Its called slice notation. Your example should read.

new_sub_string = myString[2:]

If you leave out the second param it is implicitly the end of the string.