Skip to content

Combining two lists randomly

Hey guys I’m trying to combine these two lists into one dictionary. However, on the second for loop it just keeps going through that and not going back to the first. Any help would be really appreciated. Thank you! Answer in your code, the for key in emails: part needed to be removed. it would choose th…

How to create a matrix of lists?

I need to create a matrix MxN where every element of the matrix is a list of integers. I need a list so that I can append new elements as I go, therefore a 3D matrix would not work here. I’m not sure if what I need here would actually be a list of lists. Answer The following function creates