Back to Lesson
Set Relationship Hierarchy
Analyze containment relationships using logical booleans.
Instructions
- Given,
req_perms = {"read"}, anduser_perms = {"read", "write"}.guest_perms = {"read", "execute"} - Print whetheris a subset of
req_perms.user_perms - Print whetheris a subset of
user_perms(reversed with "not").guest_perms - Print whetheris a superset of
user_perms.req_perms
main.py
main.py
Ctrl + Enter