Shekhar is an artist. He likes to draw and paint. He is now drawing a portrait of a city road which is in the black color and white strips on it. Check whether both of these colors are present in the color palate.
Space separated string of color names
True or False
green blue white black pink
green blue black pink
colors=input().split() roadColors=["white","black"] colorlist= for i in colors: if i=="white" or i=="black": if i not in colorlist: colorlist.append(i) roadColors.sort() colorlist.sort() if roadColors==colorlist: print(True) else: print(False)