Solve problem "The number of pairs of equal" online - Learn Python 3 - Snakify

The number of pairs of equal


Given a list of numbers, count how many element pairs have the same value (are equal). Any two elements that are equal to each other should be counted exactly once.

In all the problems input the data using input() and print the result using print().