Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 265 Bytes

File metadata and controls

12 lines (10 loc) · 265 Bytes

Chapter 05: Strings & Methods

  • Strings are sequences of characters.
  • Indexing & slicing supported.
s = "Python"
print(s[0], s[-1], s[1:4])

String Methods

lower(), upper(), strip(), replace(), split()

find(), count(), startswith(), endswith()