compare arrays python code example Example: python compare two arrays a = [1, 2, 3, 4] b = [5, 6, 7] c = [1, 2, 3, 4] a == b # False a == c # True