Basically, I have 2 lists like this:
list_A = [A,B,C,D,E]
list_B = [B,C,A,E,D]
and I want to output one random element from each list:
Example Output:
From list_A: "A"
From list_B: "D"
How do I write code to avoid giving the same element?
Example of wrong output:
From list_A: "A"
From list_B: "A"
This is what I tried but don't know how to continue:
for a in list_A:
for b in list_B:
if a in list_B:
print(...)