Anonymous
Anonymous asked in Computers & InternetProgramming & Design · 5 months ago

Python coding?

I am having a really hard time trying to figure it how to do this code, especially how to move the center. Please help!

Attachment image

1 Answer

Relevance
  • EddieJ
    Lv 7
    5 months ago

    Hi, Manuel,

    Are you interested in doing this in a legitimate manner, or have you committed to attempting to use an improper procedure involving someone providing you with a core dump?

    -----------------

    You can use

    turtle.setpos (x, y)

    You should give your turtle a different name:

    myTurtle = turtle.Turtle ()

    or

    t1 = turtle.Turtle ()

    and then change the references.

    ------------

    colors = ['green', 'black', 'blue', 'red', 'yellow']

    def origin_circle (turtle, radius):

    ... rad = radius * len (colors)

    ... for col in colors:

    ... ... turtle.dot (rad, col)

    ... ... rad -= radius #(augmented operator)#

    turtle1.up ()

    turtle1.setpos (-50, 100)

    turtle1.down ()

    origin_circle (turtle1, 50)

Still have questions? Get answers by asking now.