Python:
i = input("Введите трехзначное число: ")
if i[0] == i[1] and i[0] != i[2]:
print("да,да,нет")
elif i[0] == i[2] and i[0] != i[1]:
print ("да,нет,да")
elif i[1] == i[2] and i[0] != i[1]:
print("нет,да,да")
elif i[1] == i[0] and i[0] == i[2]:
print("да,да,да")
else:
print("нет,нет,нет")
Python:
i = input("Введите трехзначное число: ")
if i[0] == i[1] and i[0] != i[2]:
print("да,да,нет")
elif i[0] == i[2] and i[0] != i[1]:
print ("да,нет,да")
elif i[1] == i[2] and i[0] != i[1]:
print("нет,да,да")
elif i[1] == i[0] and i[0] == i[2]:
print("да,да,да")
else:
print("нет,нет,нет")