I tried this:
l = ['cat', 'dog', 'fish']
ll = [list(x) for x in l]
print(ll)
and I got this
[['c', 'a', 't'], ['d', 'o', 'g'], ['f', 'i', 's', 'h']]
what I need is
[['cat'], ['dog'], ['fish']]
If the output you are looking for is actually
[['cat'], ['dog'], ['fish']]
Then the solution, as provided above, is the list comprehension with the square brackets wrapper:
l = ['cat', 'dog', 'fish']
ll = [[x] for x in l]
print(ll)
Output:
[[cat], [dog], [fish]]
However, if the output you're looking for the exactly the one you displayed in your post, then you'll need to use a formatted string:
l = ['cat', 'dog', 'fish']
ll = f"[[{'] ['.join(l)}]]"
print(ll)
Output:
[[cat], [dog], [fish]]
catand so on...