how to draw triangle in pygame

window = pygame.display.set_mode(300, 300)
colour = (0,0,255) #green
circle_x_&_y = (150, 50)
circle_radius = 12
border_width = 0 #0 = filled circle

pygame.draw.circle(window, colour, circle_x_&_y, circle_radius, border_width)

Here is what the above code is Doing:
1. We create a window with a size of 300×300 pixels.
2. We set the colour to blue.
3. We set the circle’s x and y coordinates to 150 and 50.
4. We set the circle’s radius to 12.
5. We set the border width to 0.
6. We draw the circle.