JJoeven

Exercises / start

Stop a loop on budget

Run a think-act loop that prints step N until action is stop or steps reach max_steps. The policy returns stop on step 3. Print DONE or BUDGET.

Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.