agents and control this implements the controllers described in in this version the higher-levels call the lower-levels more sophisticated version may have them run concurrently (either as coroutines or in parallelthe higher-levels calling the lower-level works in simulated environments when there is single agentand where the lower-level are written to make sure they return (and don' go on forever)and the higher level doesn' take too long (as the lower-levels will wait until called again representing agents and environments an agent observes the worldand carries out actions in the environmentit also has an internal state that it updates the environment takes in actions of the agentsupdates it internal state and returns the percepts in this implementationthe state of the agent and the state of the environment are represented using standard python variableswhich are updated as the state changes the percepts and the actions are represented as variablevalue dictionaries an agent implements the go(nmethodwhere is an integer this means that the agent should run for time steps in the following code raise notimplementederror(is way to specify an abstract method that needs to be overidden in any implemented agent or environment agents py -agent and controllers import random class agent(object)def __init__(self,env)