About 5,410,000 results
Open links in new tab
  1. python - How do I Type Two Triangles on the Same Line - Stack Overflow

    Oct 4, 2021 · I've been doing this project at school where we need to draw two diamonds side by side each other, and have its size dictated by user input. I watched this video that told me how …

  2. Python Turtle Triangle + Examples - Python Guides

    Oct 27, 2021 · Python turtle triangle. In this section, we will learn how to draw a triangle in a Python turtle. A triangle has three edges and three vertices. It is a closed, two-dimensional …

  3. turtleTurtle graphics — Python 3.13.3 documentation

    2 days ago · Turtle can draw intricate shapes using programs that repeat simple moves. In Python, turtle graphics provides a representation of a physical “turtle” (a little robot with a pen) …

  4. How to Draw Shapes in Matplotlib with Python - GeeksforGeeks

    Jul 22, 2024 · Drawing shapes in Matplotlib is simple and provides a wide range of options for creating and customizing displays. Using the Rectangle, Circle, and Polygon classes, you can …

  5. How to Draw a Triangle in Python Turtle - Quick Programming …

    How to Draw a Triangle in Python Turtle Python has a simple pen drawing library called turtle. Using simple movement commands, we can draw shapes using the python turtle library.

  6. Draw Triangle In Python Using Turtle Module - Pythondex

    Jul 3, 2023 · In this tutorial we will see how to draw a triangle in python turtle, turtle module is a GUI python library which can be used to draw anything from characters, cartoons, shapes and …

  7. Drawings with Python Turtle. How to draw a triangle, square

    Jun 2, 2022 · In this writing, we will learn how to draw basic figures with Python Turtle Module. In order to use the Python Turtle Module, we use import turtle code, it allows us to use the turtles...

  8. python - Printing multiple triangles - Code Review Stack Exchange

    Apr 19, 2018 · def create_triangle_array(n): # create a 2D array filled with spaces arr = [[' ' for i in range(4*n)] for j in range(2*n)] # create the outer triangle legs for i in range(2*n): arr[i][2*n-i-1] …

  9. python - What is the easiest way to make a triangles - Stack Overflow

    Jul 29, 2021 · You can create whatever triangle you want using some math. Here is a function that takes in how big the triangle needs to be (scale), angle between the points (internalAngle) …

  10. Draw Shape inside Shape in Python Using Turtle - GeeksforGeeks

    Sep 16, 2021 · In this article, we will draw various shape inside a similar shape like drawing triangles inside triangle. Follow the below steps: Define an instance for turtle. For a square …

  11. Some results have been removed
Refresh