Here is my code if that helps you answer the question
import random
Exlist = ['pl1', 'pl2']
Exvar = random.choice(Exlist)
print(Exvar)
Exlist = Exlist - list(Exvar)
I tried changing Exvar to a list
>Solution :
Use remove(). For example,
import random
Exlist = ['pl1', 'pl2']
Exvar = random.choice(Exlist)
print(Exvar)
Exlist.remove(Exvar)