I have a massive list that looks similar to this:
['red.color\xa0', '2020-11-27\xa0', 'green.color\xa0', '2020-11-27\xa0', 'blue.color\xa0', '2020-11-27\xa0']
I'm trying to figure out how to strip the \xa0 characters out as well as combine every two list items, so it would end up like:
[['red.color', '2020-11-27'], ['green.color', '2020-11-27'], ['blue.color', '2020-11-27']]
I tried this, but failed miserably:
for data in ugly:
data = data.strip("\xa0")
As for combining every other list item into a new list, well, if I fail at the above you can probably guess I implode at this.