A list of nodes

Report a typo

Complete the code below. Build an AST of the expression, put all nodes in a list, and print the list length.

Write a program in Python 3
import ast

expression = "(34 + 6) * (23**2 - 7 + 45**2)"

# put your code here
___

Create a free account to access the full topic