I want to write a function in python that will take a list B and loop over another list A. if an item in list B is present in list A, it colours it red else ignores it and returns a list A with both coloured and uncoloured text. my code isn't working at the moment.
A = ["a", "b", "c", "c"]
B = ["a" "c"]
def color()
for i in B:
if i in A:
print(Fore.RED + i)
color()