Alternative Solution for Finding the Pair (conditional statements practice problem)

Hi, I just wanted to share another solution for the Finding the Pair question:

for x in values:
    y = 100 - x
    if y in values and y != x:
        value2 = y
        value1 = x
        # print(value1, value2)<br><br><a href="https://app.dataquest.io/m/1010/screen/16" target="_blank">Click here to open the screen in a new tab.</a>

This should take less steps to find the answer