Created
January 26, 2020 23:25
-
-
Save pragdave/8e0e4dfaf352265065674933ce931740 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
str1 = "replace multiple spaces in this string with a single space" | |
str2 = "remove the decimal point and fractional parts of 3.14159 and 99.999." | |
str3 = "if words are 4 or more characters surrounded by spaces, replace words in this sentence with a single W" | |
str4 = "like str3 but now words must be between 4 and 6 characters" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment