SyntaxFix
Write A Post
Hire A Developer
Questions
One general way to construct set in iterative way like this:
aset = {e for e in alist}