Complete the code below. Build an AST of the expression, put all nodes in a list, and print the list length.
ast module
A list of nodes
Report a typo
Write a program in Python 3
import ast
expression = "(34 + 6) * (23**2 - 7 + 45**2)"
# put your code here
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.