Skip to content

Instantly share code, notes, and snippets.

@pragdave
Created January 26, 2020 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pragdave/ea3a53f91c4981cf5c1ab0334bfe39e4 to your computer and use it in GitHub Desktop.
Save pragdave/ea3a53f91c4981cf5c1ab0334bfe39e4 to your computer and use it in GitHub Desktop.
str0 = "Does this string contain the word 'cat'?"
str1 = "what is the offset of the character X in this string?"
str2 = "Replace the first space in this string with a plus sign"
str3 = "Replace all spaces with plus signs in this string"
str4 = "What is the position of the first occurrence of two adjacent vowels in this string?"
str5 = "Delete ALL the Upper Case letters in this string"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment