python count number of values without dupicalte in a second column values

Solutions on MaxInterview for python count number of values without dupicalte in a second column values by the best coders in the world