Share your repls and programming experiences

← Back to all posts
Make a drawing
WinstonWong (20)

basically what the title says. I made this one with my tutor ben. Also this is in beta so it isn't perfect. thank you for understanding

Commentshotnewtop
adityaru (147)

Nice program but I broke it just by typing in inf in how many sides I wanted :/ Again, other than that, good job :)

kingscomix (2)

another way, without color:
import turtle
sides = int(input("how many sides?\n>>>"))
length = int(input("how long will each side be?\n"))
t = turtle.Turtle()
t.begin_fill()
for n in range(sides):
angle = 360/sides
t.right(angle)
t.forward(length)
t.end_fill()

[deleted]

Cool!!