Exercise 1•Ai-foundation
Question
Question
Write a Python class `Agent` with attributes `name` and `percept`. Include a method `act()` that prints the action based on percept (if percept contains 'danger', action='avoid'; else action='explore'). Create an agent and test.
