No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
I want to draw a checkerboard on Python, but I only get one black square. Can you help me fix this program? import turtle def filled_square(size, color, x, y): turtle.setpos(x, y) turtle.color(color) turtle.begin_fill() for i in range(4): angle = 90 turtle.fd(size) turtle.lt(angle) turtle.end_fill() turtle.up() import sys n = int(sys.argv[1]) s … | |
I have to draw an n sided polygon using an isosceles triangle function. It should be only 3 lines inserted under def draw_pie(n, r). Can you help me figure out how? import math import turtle def draw_pie(n, r): """Draws a pie divided into radial segments. n: number of segments r: … |
The End.