s = "hello world" print("world" in s) print(s.find("o")) # first index, or -1 print(s.startswith("hello")) print(s.endswith("!"))
in, find, startswith, endswith