0

I am newer to python. how do i form the single list to nested list using python. Any one please help me.

content = ['a', 29, 'male', 'cs', 'cs', 'b', 29, 'male', 'cs','cs']

into:

content = [['a', 29, 'male', 'cs', 'cs'],
            ['b', 29, 'male', 'cs', 'cs']]
karthikeyan
  • 172
  • 1
  • 9

0 Answers0