import turtle as tl
tl.foward(100)
import turtle as tl
tl.foward(100)
tl.left(90)
import turtle as tl
tl.foward(100)
tl.left(90)
tl.foward(100)
tl.left(90)
tl.foward(100)
tl.left(90)
tl.foward(100)
tl.left(90)
import turtle as tl
tl.foward(100)
tl.left(90)
tl.foward(100)
tl.left(90)
tl.foward(100)
tl.left(90)
tl.foward(100)
tl.left(90)
import turtle as tl
tl.foward(200)
tl.left(90)
tl.foward(200)
tl.left(90)
tl.foward(200)
tl.left(90)
tl.foward(200)
tl.left(90)
import turtle as tl
for _ in range(4):
tl.foward(100)
tl.left(90)
import turtle as tl
def carre():
for _ in range(4):
turtle.foward(100)
turtle.left(90)
let circumferenceReducer = ( c, planet ) => {
return c + planet.diameter * Math.PI;
}
let planets = [
{ name: 'mars', diameter: 6779 },
{ name: 'earth', diameter: 12742 },
{ name: 'jupiter', diameter: 139820 }
]
let c = planets.reduce( circumferenceReducer, 0 )