Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 286 Bytes

string.md

File metadata and controls

24 lines (19 loc) · 286 Bytes

string

str[0:4]
len(str)

string.replace("-", " ")
",".join(list)
"hi {0}".format('j')
str.find(",")
str.index(",")   # same, but raises IndexError
str.count(",")
str.split(",")

str.lower()
str.upper()
str.title()

str.lstrip()
str.rstrip()
str.strip()

str.islower()