# Python's str operations, as Vibe proves and runs them
def main() -> None:
    s: str = "  Hello, World  "
    t: str = s.strip()
    print(t, len(t), s.lstrip() + "|", "|" + s.rstrip())
    print(t.upper(), t.lower(), t.startswith("Hell"), t.endswith("x"))
    print(t.find("o"), t.find("z"), t.count("l"), "World" in t)
    if "lo" in t:
        print(t.index("lo"))
    print(t.replace("l", "L"), "ab" * 3, "ab" < "b", "abc" >= "abd")
    words: list[str] = "a,b,,c".split(",")
    print(len(words), "-".join(words))
    parts: list[str] = "  one two  three ".split()
    print(len(parts), " ".join(parts))
    print("123".isdigit(), "12a".isdigit(), "abc".isalpha(), " \t".isspace(), "".isspace())
    print(str(42) + "!", int("  -17 "), t[0], t[len(t) - 1])
    print("xxhixx".strip("x"), "ß".upper(), "ÀB".lower())


if __name__ == "__main__":
    main()
