Split the string "/a/b/c" into 2 parts: "a" and "/b/c" (first simple task I found both GPT-3.5 and GPT-4 unable to achieve)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
first, second = "/a/b/c".lstrip("/").replace("/", "//", 1).split("/", 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment