Compare 2 groups of numbers
This is my last question.
With calculations I have made 192 numbers (num1 to num192)
Their value can be anything,also negative and also doubles.
The second row are 60 numbers (number1 to number60)
Their value is 1 to 60
From the 60 numbers I want to delete every number that is the same number as in the 192.
Check out your previous problem, got the absolute answer.
Started working on this one.
take a look at sets, specifically the intersection method.
That was a very good solution Akshat1,Thank you.
For the first row of 192 numbers maybe I must eliminate the negatives and doubles in it.
Also eliminate the numbers lower than 1 and higher dan 60.
And fill it up with value 0 for numbers not in that list.
Then the first row can be 60 numbers to compare with the other 60.
I think this is the solution.
I must try it with 192 numbers
t = [num1, num2, num3, num4, num5 ,num6]
s = [number1, number2, number3]
print list(set(t) - set(s))