“Python Turtle Star” Respostas de código

como fazer uma estrela em tartaruga python

import turtle

t=turtle.Turtle()
for i in range(5):
  t.begin_fill()    
  t.forward(75)
  t.right(144)
t.end_fill()
Selfish Skipper

Tartle Star Python

# import turtle library
import turtle             
polygon = turtle.Turtle()
my_num_sides = 6
my_side_length = 70
my_angle = 360.0 / my_num_sides
for i in range(my_num_sides):
   polygon.forward(my_side_length)           
   polygon.right(my_angle) 
turtle.done()
Fantastic Fly

Python Turtle Star

#turtle.home()
turtle.left(90)
turtle.heading()
90.0

#Change angle measurement unit to grad (also known as gon, grade, or gradian and equals 1/100-th of the right angle.)
turtle.degrees(400.0)
turtle.heading()
#100.0
turtle.degrees(360)
turtle.heading()
#90.0
HeavyMaple

Respostas semelhantes a “Python Turtle Star”

Perguntas semelhantes a “Python Turtle Star”

Mais respostas relacionadas para “Python Turtle Star” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código