How to compare two lists in Python?
In Python, there might be a situation where you might need to compare two lists which means checking if the lists are of the same length and if the elements of the lists are equal or not. Let us explore this with a simple example of comparing two lists. [GFGTABS] Python a = [1, 2, 3, 4, 5] b = [1, 2