If I have an object:
w = {'A'}
how do I test if this is a set or not?
If I have an object:
w = {'A'}
how do I test if this is a set or not?
if isinstance(w, set):
Add this if statement to check, replace w with the variable you want to check.