this is quite bit of output to digest it does appear that our heat-seeking drunk moves away from the origin faster than the other two kinds of drunk howeverit is not easy to digest all of the information in this output it is once again time to move away from textual output and start using plots since we are showing number of different kinds of drunks on the same plotwe will associate distinct style with each type of drunk so that it is easy to differentiate among them the style will have three aspectsthe color of the line and pointsthe shape of the marker used to indicate pointand the style of linee solid or dotted the class styleiteratorin figure rotates through sequence of styles defined by the argument to styleiterator __init__ class styleiterator(object)def __init__(selfstyles)self index self styles styles def nextstyle(self)result self styles[self indexif self index =len(self styles self index elseself index + return result figure iterating over styles the code in figure is similar in structure to that in figure the print statements in simdrunk and simall contribute nothing to the result of the simulation they are there because this simulation can take rather long time to completeand printing an occasional message indicating that progress is being made can be quite reassuring to user who might be wondering if the program is actually making progress (recall that stddev was defined in figure