a :êdg ã@s8dZddlTdd„Zdd„Zedkr4eeƒƒeƒdS) aF turtle-example-suite: tdemo_round_dance.py (Needs version 1.1 of the turtle module that comes with Python 3.1) Dancing turtles have a compound shape consisting of a series of triangles of decreasing size. Turtles march along a circle while rotating pairwise in opposite direction, with one exception. Does that breaking of symmetry enhance the attractiveness of the example? Press any key to stop the animation. Technically: demonstrates use of compound shapes, transformation of shapes as well as cloning turtles. The animation is controlled through update(). é)Ú*cCsdadS)NF)Úrunning©rrú2/usr/local/lib/python3.9/turtledemo/round_dance.pyÚstopsrc Csˆtƒtdƒtdƒtdƒd}d}d}d}tdƒ}td ƒD]D}t|ƒtƒ}||9}||9}t| ƒ|  ||d d|fd ¡q>t d |ƒtdƒtd ƒt ƒt d dƒg}tdƒD]:}t dƒtdƒtdƒtƒ|dd krº| tƒ¡qºtƒdattƒtƒd}tr„d} |D]6} |   d¡|  d¡|  | ¡| d krPdnd} q |dkrztdƒt|ƒ|d9}tƒqdS)NZgray10FZtriangleg}—R—Œcé?g˜Šy!"@ééZcompoundé gÐ?ZblackZmultitriri8ÿÿÿé´ééüÿÿÿéé Tég®Gázð?zDONE!)Z clearscreenZbgcolorZtracerÚshapeZShapeÚrangeZ shapesizeZ get_shapepolyZtiltZ addcomponentZregister_shapeZpuZsetposÚfdÚltÚupdateÚappendZcloneÚhomerZ onkeypressrÚlistenÚright) ÚfZphiÚsÚcÚshÚiÚpZdancersÚcsÚtaZdancerrrrÚmains^           r!Ú__main__N)Ú__doc__Zturtlerr!Ú__name__ÚprintZmainlooprrrrÚs 5