Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 38)
38.
How can you check if two lists are equal in Python?
list1.is_equal(list2)
list1 == list2
list1.equals(list2)
list1.compare(list2)
Answer: Option
Explanation:
In Python, you can use the == operator to check if two lists are equal.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.