List Begin State Property

if the following are true:
  • expression state at time t = "begin_expr"
  • the expression at time t = Python list elements

then expression state at time (t + 1) = "iterate_args"

If LW Python is in the "begin_expr" state and "Expression" is a list, then the next state is "iterate_args." For example, if the following are true:

  • expression state at time 1 = "begin_expr"
  • the expression at time 1 = [2, 4, 6]

then expression state at time (1 + 1) = "iterate_args"

Try stepping through the simulator to see the "Expression State" change from "begin_expr" to "iterate_args."

Code Editor
LW Python State
Current Line1Current Tab0Time0
LW Python Simulator

Comments

Please log in to add comments