| Server IP : 68.178.172.28 / Your IP : 216.73.216.152 Web Server : Apache System : Linux 28.172.178.68.host.secureserver.net 4.18.0-553.94.1.el8_10.x86_64 #1 SMP Mon Jan 19 05:45:41 EST 2026 x86_64 User : kiskarnal ( 1003) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /opt/python38/lib/python3.8/turtledemo/__pycache__/ |
Upload File : |
U
�i�_� � @ sD d Z ddlT dd� Zdd� Zdd� Zed kr@e� Zee� e� d
S )a� turtle-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
� )�*c C s4 t |�D ]&}d}| D ]}||�||� }q|} q| S )N� )�range�get)�seqZreplacementRules�n�iZnewseq�element� r
�5/opt/python38/lib/python3.8/turtledemo/lindenmayer.py�replace s r c
C sR | D ]H}z|| � W q t k
rJ zt|| |� W n Y nX Y qX qd S )N)� TypeError�draw)�commandsZrules�br
r
r r &