этот код распечатает цвет, доступный в файле color.txt
f = open("color.txt", "r")
color = f.read() #Read file
color = eval(color) #convert file content to list
line1 = 'the car is blue'
for _ in color: #Search function
if line1.find(str(_),0) != -1:
print(_, " is in the file")