Circle
RiccardoCataldi (0)

import turtle
jim = turtle.Turtle()
jim.pencolor("green")
wn=turtle.Screen()
wn.bgcolor("black")
jim.speed(0)
jim.pensize(2)

nums = [2,4,6,8,10,2,4,6,8,10]
accum = 0
for numbers in nums:
accum = accum + numbers

for nums in range (10):
jim.circle(accum)
jim.left(40)
jim.circle(30)

tess = turtle.Turtle()
tess.pencolor("orange")
tess.speed(0)

for nums in range (10):
tess.circle(accum*2)
tess.left(80)
tess.circle(90)

al = turtle.Turtle()
al.pencolor("light blue")
al.speed(0)

for nums in range (20):
al.circle(accum/2)
al.left(20)
al.circle(10)

You are viewing a single comment. View All
NotTani (46)

Cool design! You can use the sum() function on your nums array instead of your accum loop. Just replace lines 11-13 with accum = sum(nums).