I\'m working on dynamically generating code in Python.
To aid with this, I wrote a helper method which takes in a string of Python code and dumps out the AST. Here\'
Agreeing with what @BreBarn said:
"When an expression, such as a function call, appears as a statement by itself (an expression statement), with its return value not used or stored, it is wrapped in this container."
Since you're using the result of the len function to print, it's not technically an Expression, in the AST sense.
See this for more info: https://greentreesnakes.readthedocs.org/en/latest/nodes.html#expressions