Staging
v0.5.1
https://github.com/python/cpython
Revision 2b9d7abdbd4b41e2c624858f5bc80da59d8a681d authored by Gregory P. Smith on 08 May 2019, 19:20:59 UTC, committed by Ned Deily on 08 May 2019, 19:20:58 UTC
We updated the server, our testsuite must match.

https://bugs.python.org/issue36816

✈️ CLE -> DEN ✈️ GH-pycon2019
(cherry picked from commit 6bd81734de0b73f1431880d6a75fb71bcbc65fa1)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
1 parent c50d437
Raw File
Tip revision: 2b9d7abdbd4b41e2c624858f5bc80da59d8a681d authored by Gregory P. Smith on 08 May 2019, 19:20:59 UTC
[3.6] bpo-36816: Update the self-signed.pythontest.net cert (GH-13192) (GH-13198)
Tip revision: 2b9d7ab
peace.py
#!/usr/bin/env python3
"""       turtle-example-suite:

              tdemo_peace.py

A simple drawing suitable as a beginner's
programming example. Aside from the
peacecolors assignment and the for loop,
it only uses turtle commands.
"""

from turtle import *

def main():
    peacecolors = ("red3",  "orange", "yellow",
                   "seagreen4", "orchid4",
                   "royalblue1", "dodgerblue4")

    reset()
    Screen()
    up()
    goto(-320,-195)
    width(70)

    for pcolor in peacecolors:
        color(pcolor)
        down()
        forward(640)
        up()
        backward(640)
        left(90)
        forward(66)
        right(90)

    width(25)
    color("white")
    goto(0,-170)
    down()

    circle(170)
    left(90)
    forward(340)
    up()
    left(180)
    forward(170)
    right(45)
    down()
    forward(170)
    up()
    backward(170)
    left(90)
    down()
    forward(170)
    up()

    goto(0,300) # vanish if hideturtle() is not available ;-)
    return "Done!"

if __name__ == "__main__":
    main()
    mainloop()
back to top