python string - ghdrako/doc_snipets GitHub Wiki

Documentation

dir(str)
help(str)
s = "Hello, World"
print(s.split())  # [ "Hello,", "World"]
print(s.split(","))  # [ "Hello"," World"]
print(" ".join(["Hello","World"])
print(s.replace("World",PPython")
print(s.count"o")