Hey guys, I've been playing around all morning trying to get this list to be done programmatically, ie work for any number.
I've tried the following but it doesn't give the correct result:
a = [ "is", "cool"]
b = ["Peter", "James", "John"]
c = []
for k in a :
print a
b.append(a)
c.append(b)
print c
that gives the following results:
[['Peter', 'James', 'John', ['is', 'cool'], ['is', 'cool']]]
However thats not what I'm after. I'm trying to obtain something like this:
[ [ [ 'Peter' [ 'is' , 'cool'] ] [ 'James' [ 'is', 'cool',] ] ] ]
Can anyone shine any light onto this?
Cheers