e ^SrSSK7 SrSrSr\S:Xa\"5r\"\5 \"5 gg)aturtle-example-suite: xtx_lindenmayer_indian.py Each morning women in Tamil Nadu, in southern India, place designs, created by using rice flour and known as kolam on the thresholds of their homes. These can be described by Lindenmayer systems, which can easily be implemented with turtle graphics and Python. Two examples are shown here: (1) the snake kolam (2) anklets of Krishna Taken from Marcia Ascher: Mathematics Elsewhere, An Exploration of Ideas Across Cultures )*cj[U5H#nSnUHnXARXU5-nM UnM% U$)N)rangeget)seqreplacementRulesninewseqelements 1XG227CCF  Jc|UH nX"5 M g![a [XU5 M.! M4=ff=f)N) TypeErrordraw)commandsrulesbs rrr&sD   HJ  UXu%   s  ;17;;cSnSnSnXUSS.nSS0nSn[XTS 5n[5 [S 5 [S S 5 [ 5 [ 5 [ S 5 [5 [Xc5 S S K J n U"S 5 SnSn Sn XU S.n SSS.n Sn [5 [S 5 [S S 5 [ 5 [S5 [XS 5n[Xk5 [S 5 g)Nc[S5 gN-)rightrrrmain..r7s  b rc[S5 gr)leftrrrlmain..l:s  Rrc[S5 g)Ng@)forwardrrrfmain..f=s  rzf+f+f--f--f+f+f)-+r%rrzb+f+b--f--b+f+bz b--f--b--fr)sleepc2[S5 [SS5 g)Nred Z)colorcirclerrrAmain..AVs e r" rcSSKJn [S5 SU"S5- n[U5 [ US5 [U5 g)Nr)sqrtblacki)mathr6r1r$r2)r6r!s rBmain..BZs0 g d1gI q# rc0[S5 [S5 g)Ngreenr/)r1r$rrrFmain..Fbs g r)arr%afbfa afbfbfbfa)rArfbfbfbfbrzDone!) rresetspeedtracerhtupbackwarddownrtimer,r )rr!r% snake_rulessnake_replacementRules snake_startdrawingr,r3r;r? krishna_ruleskrishna_replacementRules krishna_starts rmainrT1s Q,=>K!#45Kk1=G G !H 1QKDD SMF !H q)M&-[BM G !H 1QKDHmqAG  1I r__main__N) __doc__turtlerrrT__name__msgprintmainlooprrrr\sB4AF Z &C #J Jr