Construct graphics with python.
Code :-
import random
import turtle
colors = ['red','cyan','pink' ,'yellow', 'green','orange']
t = turtle.Turtle()
t.speed(10)
turtle.bgcolor("black")
length=100
angle =50
size=5
for i in range(length):
color=random.choice(colors)
t.pencolor(color)
t.fillcolor(color)
t.penup()
t.forward(i+50)
t.pendown()
t.left(angle)
t.begin_fill()
t.circle(size)
t.end_fill()
turtle.exitonclick()
turtle.bgcolor("black")
#shorts #python #computer #coding
En esta página del sitio puede ver el video en línea Python 's magic de Duración hora minuto segunda en buena calidad , que subió el usuario SyntaxD 19 mayo 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 309 veces y le gustó like a los espectadores. Disfruta viendo!