How to convert strings in a list to individual lists?

Consider, I have a list

subjects = [‘subject1’, ‘subject2’, ‘subject3’, ‘subject4’, ‘subject5’]

How do I convert these individual list elements to individual lists?

subject1 = [ ]

subject2 = [ ]

subject3 = [ ]

subject4 = [ ]

subject5 = [ ]


Source: python

Leave a Reply