I would like to understand why is this a valid syntax:
common = (set(classes['Biology']) & set(classes['Math']) & set(classes['PE']) & set(classes['Social Sciences']) & set(classes['Chemistry']))
but not this:
common = set(classes['Biology']) & set(classes['Math']) & set(classes['PE'] & set(classes['Social Sciences']) & set(classes['Chemistry'])
TL;DR
Why is there a need to put all the unions into normal braces
()
Thank you.