Apr-30-2019, 03:54 PM
(Apr-30-2019, 01:41 PM)buran Wrote: what shape do you want? 30x20 does not work
Yes it should be 30x20.
But I can simplify the example. The point is to create new lists that for the elements in f1 will *1 and for the missing elements comparing to f2 will add *0.
f1 = [['N1M2', 'N1M3', 'N1M4', 'N1M5'], ['M1N2', 'N2M3', 'N2M4', 'N2M5'], ['N1M3', 'N1M4', 'N1M5', 'N2M3', 'N2M4', 'N2M5']] f2 = ['M1N2','M1N3','M1N4','M1N5','M2N3','M2N4','M2N5','M3N4','M3N5','M4N5','N1M2','N1M3','N1M4','N1M5','N2M3','N2M4','N2M5','N3M4','N3M5','N4M5']I don't know how I can loop correctly to solve this problem.