Check Yourself

What is a generator?

 View/hide answer

A function that remembers the point in the function body where it last returned a value and the values of all local variables.

 

 

What is the difference between yield and return?

 View/hide answer

When yield is used, the state of the function is not lost.

 

 

What is a model?

 View/hide answer

A model is a theoretical construct that will provide useful information about the possible behaviors of the system being modeled.