Monday, July 1, 2013

Python, meet Turtle

By Vasudev Ram


from time import sleep
import turtle as t

def waitforever():
    while True:
    sleep(10)

def main():
    x = 15
    while True:
        t.forward(x)
        t.right(90)
        x = x + 10
        if x > 500:
            break

    waitforever()

main()


Python Turtle graphics

- Vasudev Ram - Dancing Bison Enterprises

Contact me

No comments: