I need help in making a validation function to help me get an error output when the user input is repeated.
this is just a part of the code that i am doing and i just need help in making a validation function.
Color_ID_List=[]
maxColorList=15
while len(Color_ID_List)<maxColorList:
b=input("Enter New color: ")
c=int(input("Enter ID: "))
d=input("Enter type of color: ")
print("The ID of", b, "is", c,"and the type of color is",d)
Color_ID_List.append(b)
Color_ID_List.append(c)
Color_ID_List.append(d)
print("")
print("")
print("The following colors and ID has been added")
print(Color_ID_List)