Exercise: Check set membership
In the Dictionaries series, you used
in to check if a key exists. The same keyword works on sets. Check whether 'editor' is in the allowed set and store the result in has_access.Premium
Python
Setting up Python environment... Output