code: def strip_punctuation(text, exclude='', include=''):
          
          chars_to_strip = ''.join(
              set(list(punctuation)).union(set(list(include))) - set(list(exclude))
          )
          return text.strip(chars_to_strip)
docs: Strip leading and trailing punctuation from an input string.