Contact: aviboots(AT)netvision.net.il
40,286 questions
52,312 answers
573 users
def trim_punctuation(s): chars_to_trim = '*!,._-' return s.strip(chars_to_trim) array = [ "C-Sharp!!!", "...c", "java,,,", "c++", "**python__", ".S.Q.L." ] for s in array: print(trim_punctuation(s)) ''' run: C-Sharp c java c++ python S.Q.L '''