{"id":911,"date":"2015-03-22T23:47:29","date_gmt":"2015-03-22T23:47:29","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2015\/03\/22\/python-show-differences-between-2-lists\/"},"modified":"2021-07-31T11:52:34","modified_gmt":"2021-07-31T11:52:34","slug":"python-show-differences-between-2-lists","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/Programming\/Python\/python-show-differences-between-2-lists.html","title":{"rendered":"Python – Show differences between 2 Lists"},"content":{"rendered":"
Below shows you how to compare and show the differences between 2 lists by using the set command,<\/p>\n
>>> set([1563, 1564, 1565, 1566, 1567]).symmetric_difference([1563, 1564, 1565, 1566, 157])\r\nset([1567, 157])<\/pre>\n","protected":false},"excerpt":{"rendered":"Below shows you how to compare and show the differences between 2 lists by using the set command, >>> set([1563, 1564, 1565, 1566, 1567]).symmetric_difference([1563, 1564, 1565, 1566, 157]) set([1567, 157])<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"yoast_head":"\n
Python - Show differences between 2 Lists - Fir3net<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n