Timeline for Get difference between two lists with Unique Entries
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 7, 2023 at 5:21 | comment | added | SuperNova | @edjm stackoverflow.com/questions/3462143/… please check this | |
Mar 6, 2023 at 15:46 | comment | added | edjm | See: stackoverflow.com/questions/36242887/… | |
Mar 6, 2023 at 14:39 | comment | added | edjm | @SuperNova new to Python here. How do you print out the differences found in set temp1 and also print out differences in set temp2? Meaning if I only wanted to see what was in temp1 and also print out another line of what only exists in temp2. | |
Oct 19, 2021 at 5:41 | comment | added | urig |
@Gangula To see the difference between the two methods, add a value to temp2 that is not present in temp1 and try again.
|
|
Sep 13, 2021 at 14:09 | comment | added | Gangula |
how is this different than set(temp1) - set(temp2) (ar's answer). I didn't find any difference in output when I ran this with temp1 and temp2
|
|
Sep 13, 2021 at 9:11 | comment | added | Gangula | does this perform better than any other solution w.r.t time? | |
Apr 7, 2021 at 3:25 | comment | added | Rich Lysakowski PhD | Definitely the best answer that addresses the OP's question directly "Get difference between two lists". The others are too complicated with side cases. And there is no datatype conversion. | |
Mar 17, 2021 at 22:35 | comment | added | EuberDeveloper | This is the best for a 2-side difference | |
Dec 28, 2020 at 16:09 | comment | added | user3521099 | Good find! I always overlooked this section of the documentation: docs.python.org/3/library/…. | |
Sep 19, 2016 at 5:25 | history | edited | SuperNova | CC BY-SA 3.0 |
added 146 characters in body
|
Jul 7, 2016 at 7:50 | history | answered | SuperNova | CC BY-SA 3.0 |