49873/how-do-i-draw-a-hexagon-using-the-turtle-module-of-python
Hey @Jinu, try this:
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()
Hey @Jinu, Try something like this: import turtle star = ...READ MORE
Hi, it is pretty simple, to be ...READ MORE
Try this: import turtle turtle = turtle.Pen() turtle.left(90) for x in ...READ MORE
A couple hours after posting this question ...READ MORE
Hi, there is only that way and ...READ MORE
Hi, good question. If you are considering ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.