In below list, there are actually two dupes. But due to difference of SPACE between second word of sentence and (, its treating them as unique sentences.
By using Python - Regular Expressions, how to create addition space between words. (example: 1st item) 'United States(US)', should be changed to 'United States (US)' (same as 2nd item)
listx =
['United States(US)',
'United States (US)',
'New York(NY)',
'New York (NY)']
Expected Output list is
['United States (US)',
'United States (US)',
'New York (NY)',
'New York (NY)']
Actually, i am trying eliminate duplicate sentences from the list and considering this is one of the approach by making the sentences similar first. Please suggest.