I\'ve got an array of special characters that looks something like this.
specialCharList=[\'`\',\'~\',\'!\',\'@\',\'#\',\'$\',\'%\',\'^\',
\'&\'
The readability of your list could be greatly improved by putting your special characters in a string:
>>> SCL = "`~!@#$%^&*()_-+=|{}[],;:'.>/" + '"\\'
>>> specialCharacters = list(SCL)
We're combining two strings, one delimited by " and where we put ', the second delimited by ' and where we put " and \\ (that we have to escape, so we have to put '\\').