Computer Science, asked by visionkayden, 9 months ago

How can we make a hexagon on code org using the app lab and turtle (please write in block-based coding.)? Please help me out!

Answers

Answered by saisanchit0
2

Answer:

# Python program to draw hexagon  

# using Turtle Programming  

import turtle  

polygon = turtle.Turtle()  

num_sides = 6

side_length = 70

angle = 360.0 / num_sides  

for i in range(num_sides):  

polygon.forward(side_length)  

polygon.right(angle)  

 

turtle.done()  

Explanation:

hello pls see this once!

Answered by susanta140468
1

Answer:

these are the codes

Attachments:
Similar questions