How could I remove all the illegal characters from each string in the my_titles
list and replace them with an underscore?
Here is my code:
illegal_chars=['?',':','>','<','|']
my_titles=['Memoirs | 2018','>Example<','May: the 15th']
Would I have to use a nested for loop or is there an easier/cleaner way to do it? Thank you!