0

Whats the most pythonic or efficent way to check if two lists are equal in size?

The only thing I can think of is

len(list_a) == len(list_b)

but that seems like it would take a lot more processing power than necessary, especially if the check needs to be done frequently and on large lists.

Is there a better way?

Reimus Klinsman
  • 898
  • 2
  • 12
  • 23

0 Answers0