Python Forum
New to coding, and could use some help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New to coding, and could use some help
#3
(Jan-30-2018, 05:48 PM)Mekire Wrote: Please post your actual code in code tags (use the python icon when posting). Pictures of code don't help us much as we then have to type the whole thing out ourselves.

Sorry.

import turtle
t = turtle.pen()
turtle.bgcolor('black')
colors = ['yellow', 'green', 'blue', 'red']
for x in range(100):
    t.pencolor(colors[x%4])
    t.forward(x)
    t.left(91)
Hopefully this helps. As I said, I am new to coding, and even more so to this forum.

Sorry again.

Sincerely

Jonas P.
Reply


Messages In This Thread
RE: New to coding, and could use some help - by SomeoneSomewhere - Jan-30-2018, 06:11 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020