Currently I have a dictionary that looks like this:
{'https://en.wikipedia.org/w/index.php?title=Template:Coronavirus&action=edit': {'e'}, 'https://en.wikipedia.org/w/index.php?title=COVID-19_pandemic&action=edit': {'[update]'}, 'https://www.ons.gov.uk/peoplepopulationandcommunity/healthandsocialcare/conditionsanddiseases/datasets/coronaviruscovid19infectionsurveydata': {'ONS'}
I want to remove the non alphanumeric characters at the beginning and end of each key and value so it looks like this:
{http://google.com: [Google, That one search engine], http://purdue.edu: [Purdue University]}
Also one more question. How would I write my cleaned dictionary to a txt file with the values of the dictionary indented below the key? I know this is a lot but I need help please. Thanks