René's URL Explorer Experiment


Title: How to find Union of two lists in Python - Programming In Python

Open Graph Title: How to find Union of two lists in Python - Programming In Python

Description: A simple program which tells us how to find the union of two lists in Python. Here I convert lists to sets and use in-built union method.

Open Graph Description: A simple program which tells us how to find the union of two lists in Python. Here I convert lists to sets and use in-built union method.

Opengraph URL: https://www.programminginpython.com/find-union-two-lists-python/

X: @python_pip

Generator: Site Kit by Google 1.166.0

direct link

Domain: programminginpython.com


Hey, it has json ld scripts:
{"@context":"https:\/\/schema.org\/","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"https:\/\/www.programminginpython.com\/find-union-two-lists-python\/"},"url":"https:\/\/www.programminginpython.com\/find-union-two-lists-python\/","headline":"How to find Union of two lists in Python","datePublished":"2017-01-12T02:40:55+00:00","dateModified":"2023-05-08T18:42:19+00:00","publisher":{"@type":"Organization","@id":"https:\/\/www.programminginpython.com\/#organization","name":"Programming In Python","logo":{"@type":"ImageObject","url":"","width":600,"height":60}},"image":{"@type":"ImageObject","url":"https:\/\/www.programminginpython.com\/wp-content\/uploads\/2023\/03\/union_of_lists_FB1.png","width":1920,"height":400},"articleSection":"Data Structures","keywords":"for loop, lists, math, sets, union, venn diagrams","description":"

Hello everybody, welcome back to programminginpython.com. Here in this post am going to tell you how to find the union of two lists in python. Generally, Union means getting all the unique elements in both the …<\/p>","author":{"@type":"Person","name":"AVINASH NETHALA","url":"https:\/\/www.programminginpython.com\/author\/avinash\/","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/ed52e7670d7db94820c7430d324103ccdecb16d86611d5b29064aa9ce25a958b?s=96&d=mm&r=g","height":96,"width":96},"sameAs":["https:\/\/www.programminginpython.com\/"]}}


og:localeen_US
og:typearticle
og:site_nameProgramming In Python
article:publisherhttps://www.facebook.com/programminginpython
article:published_time2017-01-12T02:40:55+00:00
article:modified_time2023-05-08T18:42:19+00:00
og:imagehttps://www.programminginpython.com/wp-content/uploads/2023/03/union_of_lists_FBB.png
og:image:width1200
og:image:height630
og:image:typeimage/png
authorAVINASH NETHALA
twitter:cardsummary_large_image
twitter:creator@python_pip
twitter:label1Written by
twitter:data1AVINASH NETHALA
twitter:label2Est. reading time
twitter:data22 minutes
google-adsense-platform-accountca-host-pub-2644536267352236
google-adsense-platform-domainsitekit.withgoogle.com

Links:

Skip to contenthttps://programminginpython.com/find-union-two-lists-python/#primary
Homehttps://programminginpython.com/
Postshttps://www.programminginpython.com/posts/
Videoshttps://www.programminginpython.com/videos/
Bookshttps://www.programminginpython.com/books-python-programming-language/
Contact Ushttps://www.programminginpython.com/contact/
https://www.youtube.com/programminginpython
https://github.com/avinashn/programminginpython.com
https://www.facebook.com/programminginpython
https://www.instagram.com/programminginpython_pip/
https://twitter.com/python_pip
Programming In Pythonhttps://www.programminginpython.com/
Newsletter https://programminginpython.com/newsletter
Random Posts https://www.programminginpython.com?newsmaticargs=custom&posts=random
javascript:void(0);
Homehttps://programminginpython.com/
Postshttps://www.programminginpython.com/posts/
Videoshttps://www.programminginpython.com/videos/
Bookshttps://www.programminginpython.com/books-python-programming-language/
Contact Ushttps://www.programminginpython.com/contact/
Buy me a coffee? https://bmc.link/programInPython
https://www.programminginpython.com/python-vs-r-data-science/
Python vs R: Which Language is Better for Data Science?https://www.programminginpython.com/python-vs-r-data-science/
10 months agohttps://www.programminginpython.com/python-vs-r-data-science/
https://www.programminginpython.com/top-7-python-books-you-must-read-2025/
Top 7 Python Books You Must Read in 2025https://www.programminginpython.com/top-7-python-books-you-must-read-2025/
10 months agohttps://www.programminginpython.com/top-7-python-books-you-must-read-2025/
https://www.programminginpython.com/best-python-web-frameworks-django-flask-and-fastapi/
Best Python Web Frameworks: Django, Flask, and FastAPI Breakdownhttps://www.programminginpython.com/best-python-web-frameworks-django-flask-and-fastapi/
10 months ago10 months agohttps://www.programminginpython.com/best-python-web-frameworks-django-flask-and-fastapi/
https://www.programminginpython.com/20-best-python-one-liners-to-boost-your-coding-skills/
20 Best Python One-Liners to Boost Your Coding Skillshttps://www.programminginpython.com/20-best-python-one-liners-to-boost-your-coding-skills/
11 months agohttps://www.programminginpython.com/20-best-python-one-liners-to-boost-your-coding-skills/
https://www.programminginpython.com/matplotlib-data-visualization-python/
Matplotlib Data Visualization in Pythonhttps://www.programminginpython.com/matplotlib-data-visualization-python/
2 years ago2 years agohttps://www.programminginpython.com/matplotlib-data-visualization-python/
Integrating Hospital Inventory Management Software with Ordering and Billinghttps://www.programminginpython.com/integrating-hospital-inventory-management-software-with-ordering-and-billing/
2 years agohttps://www.programminginpython.com/integrating-hospital-inventory-management-software-with-ordering-and-billing/
Homehttps://www.programminginpython.com/
Data Structureshttps://www.programminginpython.com/category/data-structures/
Listshttps://www.programminginpython.com/category/data-structures/lists/
AVINASH NETHALAhttps://www.programminginpython.com/author/avinash/
9 years ago3 years agohttps://www.programminginpython.com/find-union-two-lists-python/
0https://www.programminginpython.com/find-union-two-lists-python/#comments
Programming In Pythonhttps://programminginpython.com/
herehttps://www.youtube.com/watch?v=fYEC0mXj0Ss
Program on GitHubhttps://github.com/avinashn/programminginpython.com/blob/master/union_of_lists.py
Program on GitHubhttps://github.com/avinashn/programminginpython.com/blob/master/union_of_lists.py
Program on GitHubhttps://github.com/avinashn/programminginpython.com/blob/master/union_of_lists.py
linkhttps://www.programminginpython.com/category/data-structures/lists/
Click to share on X (Opens in new window) X https://www.programminginpython.com/find-union-two-lists-python/?share=twitter
Click to share on Facebook (Opens in new window) Facebook https://www.programminginpython.com/find-union-two-lists-python/?share=facebook
Morehttps://programminginpython.com/find-union-two-lists-python/
Click to print (Opens in new window) Print https://www.programminginpython.com/find-union-two-lists-python/#print?share=print
Click to email a link to a friend (Opens in new window) Email https://programminginpython.com/cdn-cgi/l/email-protection#4c733f392e26292f387169790e1f242d3e2928697e7c1c233f38697908697e7c04233b697e7c3823697e7c2a252228697e7c1922252322697e7c232a697e7c383b23697e7c20253f383f697e7c2522697e7c1c35382423226a6f7c7f74772e232835712438383c3f697f0d697e0a697e0a3b3b3b623c3e232b3e2d212125222b25223c3538242322622f2321697e0a2a25222861392225232261383b236120253f383f613c3538242322697e0a6a6f7c7f74773f242d3e297129212d2520
Click to share on LinkedIn (Opens in new window) LinkedIn https://www.programminginpython.com/find-union-two-lists-python/?share=linkedin
Click to share on Reddit (Opens in new window) Reddit https://www.programminginpython.com/find-union-two-lists-python/?share=reddit
Click to share on WhatsApp (Opens in new window) WhatsApp https://www.programminginpython.com/find-union-two-lists-python/?share=jetpack-whatsapp
Click to share on X (Opens in new window) X https://www.programminginpython.com/find-union-two-lists-python/?share=twitter
Click to share on Facebook (Opens in new window) Facebook https://www.programminginpython.com/find-union-two-lists-python/?share=facebook
Morehttps://programminginpython.com/find-union-two-lists-python/
Click to print (Opens in new window) Print https://www.programminginpython.com/find-union-two-lists-python/#print?share=print
Click to email a link to a friend (Opens in new window) Email https://programminginpython.com/cdn-cgi/l/email-protection#fdc28e889f97989e89c0d8c8bfae959c8f9899d8cfcdad928e89d8c8b9d8cfcdb5928ad8cfcd8992d8cfcd9b949399d8cfcda893949293d8cfcd929bd8cfcd898a92d8cfcd91948e898ed8cfcd9493d8cfcdad8489959293dbdecdcec5c69f929984c09589898d8ed8cebcd8cfbbd8cfbb8a8a8ad38d8f929a8f9c909094939a94938d8489959293d39e9290d8cfbb9b949399d08893949293d0898a92d091948e898ed08d8489959293d8cfbbdbdecdcec5c68e959c8f98c098909c9491
Click to share on LinkedIn (Opens in new window) LinkedIn https://www.programminginpython.com/find-union-two-lists-python/?share=linkedin
Click to share on Reddit (Opens in new window) Reddit https://www.programminginpython.com/find-union-two-lists-python/?share=reddit
Click to share on WhatsApp (Opens in new window) WhatsApp https://www.programminginpython.com/find-union-two-lists-python/?share=jetpack-whatsapp
for loophttps://www.programminginpython.com/tag/for-loop/
listshttps://www.programminginpython.com/tag/lists/
mathhttps://www.programminginpython.com/tag/math/
setshttps://www.programminginpython.com/tag/sets/
unionhttps://www.programminginpython.com/tag/union/
venn diagramshttps://www.programminginpython.com/tag/venn-diagrams/
Previous: Python Program to separate even and odd numbers in a listhttps://www.programminginpython.com/python-program-separate-even-odd-numbers-lists/
Next: Python program to check whether a number is Palindrome or nothttps://www.programminginpython.com/python-program-check-palindrome/
Cancel replyhttps://programminginpython.com/find-union-two-lists-python/#respond
javascript:void(0);
Python Dictionary and its operationshttps://www.programminginpython.com/python-dictionary-operations/
AVINASH NETHALAhttps://www.programminginpython.com/author/avinash/
3 years ago3 years agohttps://www.programminginpython.com/python-dictionary-operations/
0https://www.programminginpython.com/python-dictionary-operations/#comments
Python tuple operations – Add, Remove, Slice, Concat, Reversehttps://www.programminginpython.com/python-tuple-operations-add-remove-slice-concat-reverse/
AVINASH NETHALAhttps://www.programminginpython.com/author/avinash/
3 years ago3 years agohttps://www.programminginpython.com/python-tuple-operations-add-remove-slice-concat-reverse/
0https://www.programminginpython.com/python-tuple-operations-add-remove-slice-concat-reverse/#comments
Set Operations in Pythonhttps://www.programminginpython.com/set-operations-python/
AVINASH NETHALAhttps://www.programminginpython.com/author/avinash/
3 years ago3 years agohttps://www.programminginpython.com/set-operations-python/
0https://www.programminginpython.com/set-operations-python/#comments
Python program to merge or concatenate two listshttps://www.programminginpython.com/python-program-merge-concatenate-two-lists/
AVINASH NETHALAhttps://www.programminginpython.com/author/avinash/
6 years ago3 years agohttps://www.programminginpython.com/python-program-merge-concatenate-two-lists/
0https://www.programminginpython.com/python-program-merge-concatenate-two-lists/#comments
Python vs R: Which Language is Better for Data Science?https://www.programminginpython.com/python-vs-r-data-science/
Top 7 Python Books You Must Read in 2025https://www.programminginpython.com/top-7-python-books-you-must-read-2025/
Best Python Web Frameworks: Django, Flask, and FastAPI Breakdownhttps://www.programminginpython.com/best-python-web-frameworks-django-flask-and-fastapi/
20 Best Python One-Liners to Boost Your Coding Skillshttps://www.programminginpython.com/20-best-python-one-liners-to-boost-your-coding-skills/
Matplotlib Data Visualization in Pythonhttps://www.programminginpython.com/matplotlib-data-visualization-python/
https://programminginpython.com/datacamp-offer
Complete Python Developer: Zero to Mastery.http://bit.ly/python-mastery
Automate the boring stuff.https://bit.ly/python-automation
Python and Django Full Stack Web Developer Bootcamp.http://bit.ly/python-web-django
Artificial Intelligence and Machine Learning E-Degree.https://www.eduonix.com/ai-machine-learning-edegree/UHJvZHVjdC04MDgwMDA=
Complete Python & Python OOP.https://bit.ly/complete-python
https://programminginpython.com/hostgator-offer
Health and Beautyhttps://www.amazon.in/b?_encoding=UTF8&tag=justlaravel-21&linkCode=ur2&linkId=554d248add90f1bf9d0d908bb75ffc3f&camp=3638&creative=24630&node=1374407031
Deals on Electronicshttps://www.amazon.in/b?_encoding=UTF8&tag=justlaravel-21&linkCode=ur2&linkId=1aa3056520e0f3661029912ad1cbc08f&camp=3638&creative=24630&node=976419031
Toys and Gameshttps://www.amazon.in/b?_encoding=UTF8&tag=justlaravel-21&linkCode=ur2&linkId=89226afd124a8c0761353c937cb13925&camp=3638&creative=24630&node=1350380031
Sports and Outdoorshttps://www.amazon.in/b?_encoding=UTF8&tag=justlaravel-21&linkCode=ur2&linkId=44fa55ac07fdabc3472f6e4a6cf974b5&camp=3638&creative=24630&node=1984443031
Pet Supplieshttps://www.amazon.in/b?_encoding=UTF8&tag=justlaravel-21&linkCode=ur2&linkId=bcd97602c3fcbd70580a9b7f8b74f97a&camp=3638&creative=24630&node=2454181031
Shoeshttps://www.amazon.in/b?_encoding=UTF8&tag=justlaravel-21&linkCode=ur2&linkId=7aec557a955cc31a0f5c7b6706080232&camp=3638&creative=24630&node=1983396031
Movies and TVhttps://www.amazon.in/b?_encoding=UTF8&tag=justlaravel-21&linkCode=ur2&linkId=674624221ed978ce6b35dfaee8c6e346&camp=3638&creative=24630&node=976416031
Algorithmshttps://www.programminginpython.com/category/algorithms/
Artificial Intelligence AIhttps://www.programminginpython.com/category/artificial-intelligence-ai/
Basic Programshttps://www.programminginpython.com/category/basic-programs/
Bookshttps://www.programminginpython.com/category/python-resources/books/
Data Structureshttps://www.programminginpython.com/category/data-structures/
Databaseshttps://www.programminginpython.com/category/databases/
Dictionarieshttps://www.programminginpython.com/category/data-structures/dictionaries/
Files Handlinghttps://www.programminginpython.com/category/files-handling/
Letter Patternshttps://www.programminginpython.com/category/pattern-programming/letter-patterns/
Listshttps://www.programminginpython.com/category/data-structures/lists/
Machine Learninghttps://www.programminginpython.com/category/machine-learning/
Math Programshttps://www.programminginpython.com/category/math-programs/
Pattern Programminghttps://www.programminginpython.com/category/pattern-programming/
Promotedhttps://www.programminginpython.com/category/promoted/
Python for Automationhttps://www.programminginpython.com/category/python-for-automation/
Python for Data Sciencehttps://www.programminginpython.com/category/python-for-data-science/
Python for Ethical Hackinghttps://www.programminginpython.com/category/python-for-ethical-hacking/
Python For Financehttps://www.programminginpython.com/category/python-for-finance/
Python GUIhttps://www.programminginpython.com/category/python-gui/
Python Librarieshttps://www.programminginpython.com/category/python-libraries/
Python OOPhttps://www.programminginpython.com/category/python-oop/
Python Resourceshttps://www.programminginpython.com/category/python-resources/
Python Tips and Trickshttps://www.programminginpython.com/category/python-tips-and-tricks/
Searching Algorithmshttps://www.programminginpython.com/category/algorithms/searching-algorithms/
Setshttps://www.programminginpython.com/category/data-structures/sets/
Sorting Algorithmshttps://www.programminginpython.com/category/algorithms/sorting-algorithms/
Tupleshttps://www.programminginpython.com/category/data-structures/tuples/
BlazeThemeshttps://blazethemes.com/
Homehttps://programminginpython.com/
Postshttps://www.programminginpython.com/posts/
Videoshttps://www.programminginpython.com/videos/
Bookshttps://www.programminginpython.com/books-python-programming-language/
Contact Ushttps://www.programminginpython.com/contact/

Viewport: width=device-width, initial-scale=1

Robots: index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1


URLs of crawlers that visited me.