How to split a compound word split by hyphen into two individual words
list1 = ['Dodd-Frank', 'insurance', 'regulation']
new1 = '-'.join(list1).split('-')
print(new1)
Prints:
['Dodd', 'Frank', 'insurance', 'regulation']
list1 = ['Dodd-Frank', 'insurance', 'regulation']
new1 = '-'.join(list1).split('-')
print(new1)
Prints:
['Dodd', 'Frank', 'insurance', 'regulation']