Iteration of lists in lists


#1


i have a problem regarding the iteration of lists inside of a list.
I am enclosing a screenshot of my code where i got stuck and i also want some implementation of the statement which i rounded in red line.

.


Replace this line with your code.


#2

general syntax for append:

the_list.append(item_to_append)

which variable contains the value you want to append?

also, append() will update the list for you, so no need to store result of an append action in a variable


#3

results = results.append() << this didn't do anything in your code, basically we do this for counting, but counting value is in numbers variable
try to tell direct to this "results[ ]" to append numbers


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.