I have a list m:
m = ['Apple', 'Lemon', 'Orange']
and I want output as follows:
['Apple'], ['Lemon'], ['Orange']
How can this be done without using list comprehension and for cycles?
In my approach I dont understand what variables to use. Any ideas?
def lists(m):
count=0`
while count < len(m):
len(m)
count += 1
return #separated lists?
print(lists(m))
whileloop approach