about | help | code help+videos | done | prefs |
Write a method that accepts a string and returns the same string but with all of the punctuation marks removed. For the purpose of this method, we will only consider four marks as punctuation marks: ".", "!", "?", and "," removePunctuation("A man, a plan, a canal, Panama!") → "A man a plan a canal Panama" removePunctuation("No punctuation here") → "No punctuation here" removePunctuation("!?!??!!,....said Ralph.") → "said Ralph" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 250
Copyright Nick Parlante 2017 - privacy