Turtle | Random Snippet



    Aaron Lefler


    The following code imports the turtle module, which provides various methods for creating turtle objects. The next line creates a new turtle object, named Tess.

    1import turtle
    2import random
    3tess = turtle.Turtle()

    Shortcut: turtle

    import turtle
    import random
    tess = turtle. Turtle()
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.