Hi. What I am asking is not from codeacademy exercises but from tinkering through basic of python.
First off, I wanted to iterate through a list inside a list and store every second element into a new list. I have tried it like this.
nested = [[1, 2], [3, 4], [5, 6], [6, 7], [8, 9]] new =  for each in nested[:][:1]: new.append(each) print (new)
The output that I got is this : [[1, 2]]
and I expected to get only one list, "new" that contains 2,4,6,7,9 (only 1 square brackets)