I have a list that is outputed from a function.
a = ['NO YES NO NO', 'YES YES NO YES', 'NO NO YES NO', ]
I want it to change to a input like this for another function .
a = [['YES', 'YES', 'NO', 'YES'],
['YES', 'NO', 'NO', 'YES'],
['NO', 'YES', 'NO', 'YES']]
ignore they are different elements.
How would I do that in Python 3.2 ?
1 Answer