Programming in Python
0 of 222 complete

Section 6: Strings · Notes

Section notes

  • A string is a sequence of characters; each position starts from zero.
  • Slicing, such as s[0:4], takes part of a string.
  • String methods: upper(), lower(), find(), replace(), strip(), split().
  • Strings are immutable: every change produces a new string.

Your progress is saved in this browser. Accounts are coming so it follows you across devices.