role example def function()nonlocal xx 'newimport module access import sys from attribute access from sys import stdin class building objects class subclass(superclass)staticdata [def method(self)pass try/exceptfinally catching exceptions tryraise triggering exceptions raise endsearch(locationassert debugging checks assert ' too smallwith/as context managers ( +with open('data'as myfileprocess(myfiledel deleting references del data[kdel data[ :jdel obj attr del variable action(exceptprint('action error'technicallytable - reflects python ' statements though sufficient as quick preview and referenceit' not quite complete as is here are few fine points about its contentassignment statements come in variety of syntax flavorsdescribed in basicsequenceaugmentedand more print is technically neither reserved word nor statement in xbut built-in function callbecause it will nearly always be run as an expression statementthough (and often on line by itself)it' generally thought of as statement type we'll study print operations in yield is also an expression instead of statement as of like printit' typically used as an expression statement and so is included in this tablebut scripts occasionally assign or otherwise use its resultas we'll see in as an expressionyield is also reserved wordunlike print most of this table applies to python xtooexcept where it doesn' --if you are using python xhere are few notes for your pythontooin xnonlocal is not availableas we'll see in there are alternative ways to achieve this statement' writeable state-retention effect in xprint is statement instead of built-in function callwith specific syntax covered in in xthe exec code execution built-in function is statementwith specific syntaxsince it supports enclosing parenthesesthoughyou can generally use its call form in code python' statements