питон:
numbers = [int(input()) for number in range(3)]
for n in numbers:
if numbers.count(n) == 2:
print(True)
break
питон:
numbers = [int(input()) for number in range(3)]
for n in numbers:
if numbers.count(n) == 2:
print(True)
break