I have a list of string and I want to remove one empty space between words:
classes_list = ['CLASS 8B CHEM | MON | 10AM to 10:40AM', '--Rescheduled-- CLASS 8B MATHS | MON | 11AM to 11:40AM', 'CLASS 8B HIST | MON | 5PM to 5:40PM']
- I want to remove one space after CHEM, MATHS, HIST
- Look carefully there are two spaces after CHEM, MATHS, HIST
After which if I loop through the list it should print this:
'CLASS 8B CHEM | MON | 10AM to 10:40AM',
'--Rescheduled-- CLASS 8B MATHS | MON | 11AM to 11:40AM',
'CLASS 8B HIST | MON | 5PM to 5:40PM'
I don't know how to regular expression out-here if possible