19 lines
370 B
Python
19 lines
370 B
Python
import turtle as tt
|
|
|
|
def example_02():
|
|
"""10 pentagonos que forman un decaedro"""
|
|
tt.bgcolor("black")
|
|
tt.color("white")
|
|
tt.speed(10)
|
|
tt.setundobuffer(None)
|
|
for _ in range(10):
|
|
tt.right(36)
|
|
for _ in range(5):
|
|
tt.forward(100)
|
|
tt.right(72.0)
|
|
tt.exitonclick()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
example_02()
|