You can stick with your original idea of using a range. You just can't do
for i in numbers: as your second loop.
Can you see what the values of
numbers will be each time through the loop?
To test things:
- go here https://repl.it/languages/python
- paste your code in
- comment out the bits that are preventing your code from running (that's the
for i in numbers part)
- any place that you can't figure out a variable's value or if you just want to double check, put a print statement in.
Start with this and make sure you understand what you have going on there so far. Then we can figure what your second loop should be.
n = [[1, 2, 3], [4, 5, 6, 7, 8, 9]]
results = 
print "How many items in our big list?", len(lists)
# first loop gets us the index for each sub list
for numbers in range(len(lists)):
print "numbers: ", numbers
# the second loop is for ???
# for i in numbers: