What is a correct term for the following piece of Python syntax:
3 + 4
Python doesn't have suits or closures.
Provided code is not a lambda function either (because lambda function has a syntax of
f = lambda x, y : x + y
Expressions in Python contain identifiers, literals and operators. So expression suits good here.
Statements, in turn, are everything that can make up one or several lines of code in Python. So expressions are a subset of statements.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback