print(all(site in sites for site in ('stackoverflow', 'meta')))
print(all(site in sites for site in ('stackoverflow', 'meta', 'roger')))
How do you check the presence of many keys in a Python dictinary?