---
title: "Discussion on \"The Best Ways to Compare Two Lists in Python\" | Hashnode"
description: "Discussion on \"The Best Ways to Compare Two Lists in Python\". Check if two lists are equal, which elements match, get the difference between two lists, compare lists of dictionaries, list of strings and more!"
url: "https://hashnode.com/posts/python-compare-lists/61b5b5160059f90a57a555d2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Best Ways to Compare Two Lists in Python](https://miguendes.me/python-compare-lists?utm_source=hashnode&utm_medium=feed)

Check if two lists are equal, which elements match, get the difference between two lists, compare lists of dictionaries, list of strings and more!

Dec 12, 2021 · 17 min read · miguendes.me  
Updated Jul 2, 2022  
Read the article

-   [#python3](https://hashnode.com/tag/python3)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Miguel Brito](https://hashnode.com/@miguendes)

@miguendes · London, UK

  
[View profile](https://hashnode.com/@miguendes)

Machine Learning Software Engineer - Hobbyst Technical Writer - Interested in Software Testing, Best Practices, Scalability, and Python.

AI Software Engineer based in London, UK with 6+ years of professional experience developing and releasing software in different programming languages - Hobbyist Technical Writer - Interested in Software Testing, Best Practices, Scalability, Machine Learning/AI, and Python.

## Responses 6

Markdown supported · ⌘↵ to post

[Gyansetu](https://hashnode.com/@gyansetu)

[Oct 18, 2023](https://hashnode.com/posts/python-compare-lists/61b5b5160059f90a57a555d2/comment/652ff5372401c63aa8e6c2b7)

Python | Gyansetu is an outstanding choice for Python enthusiasts. Their courses are comprehensive, and instructors are knowledgeable and supportive. Whether you're a beginner or looking to advance your Python skills, Gyansetu offers top-notch training to meet your needs. For more info:- [gyansetu.in/blogs/future-scope-of-python-in-india](https://www.gyansetu.in/blogs/future-scope-of-python-in-india/)

[Walter Sobchak](https://hashnode.com/@Sobchak)

[Nov 25, 2022](https://hashnode.com/posts/python-compare-lists/61b5b5160059f90a57a555d2/comment/6380e53d5185f7f7b4ba829b)

So helpful ! Thanks you

[Rafael dos Santos Miguel Filho](https://hashnode.com/@ThePragmaticEngineer)

[Aug 23, 2022](https://hashnode.com/posts/python-compare-lists/61b5b5160059f90a57a555d2/comment/63056160750cde48abba9514)

Python is really fascinating! Thanks for sharing!

[Violet Booth](https://hashnode.com/@violetbooth)

[May 16, 2022](https://hashnode.com/posts/python-compare-lists/61b5b5160059f90a57a555d2/comment/62820b22457e7209fef60237)

The blog you shared was very interesting. For a [mobile developer](https://eiliana.com/technology/hire-mobile-developers) , it is really important to gain command over skillets. I also invest in mobile development skills with practical execution via freelancing at Eiliana.com. I see the difference in my skills after doing a few projects.

[Swati Sarangi](https://hashnode.com/@starCodes)

[Feb 10, 2022](https://hashnode.com/posts/python-compare-lists/61b5b5160059f90a57a555d2/comment/620483989e350308247fc41d)

Very informative and detailed, thanks for writing this article!

[Porfirio](https://hashnode.com/@pmh)

[Jan 4, 2022](https://hashnode.com/posts/python-compare-lists/61b5b5160059f90a57a555d2/comment/61d4cca1220e987977669c71)

Thank you very much for your lessons. You have been very helpful.
