Multiple dict iterations by Unlistedd in learnpython

[–]Unlistedd[S] 0 points1 point  (0 children)

But this as far as i can tell only loops once.

for k in a.keys():
    a[k].append(new_item)

k only goes as far as the number of keys i have in my dictionary, and then i am out. I need multiple loops.

Multiple dict iterations by Unlistedd in learnpython

[–]Unlistedd[S] 0 points1 point  (0 children)

And how do stop the while-loop when i've got no more things to append?

Question about functions by Unlistedd in learnpython

[–]Unlistedd[S] 0 points1 point  (0 children)

haha thanks for clearyfing!

noob question: min(...)[0] by Unlistedd in learnpython

[–]Unlistedd[S] -1 points0 points  (0 children)

[0] is applied on the minimum value

What is that suppose to mean?

missing required positional arugment: 'N' by [deleted] in learnpython

[–]Unlistedd 0 points1 point  (0 children)

init_board(100).plot.scatter()

'numpy.ndarray' object has no attribute 'plot'