map () + str.strip ()
Combining the above two functions can help us solve this particular problem. In this case, we use
strip () , which has the ability to strip trailing and leading special unwanted characters from a list of strings.
map () , used to extend the logic for each item in the list.
The original list: [`gfg`, `is`, `best`] List after removal of special characters: [`gfg`,` is`, `best`]