About 115,000 results
Open links in new tab
  1. python - Turtle graphics, draw a filled star? - Stack Overflow

    Dec 21, 2023 · If I create a circle of radius 50 in the middle of my screen and then do: create_star(turtle.Turtle(), "purple", 0, 0, 100, 100) I was expecting a star in the middle of my …

  2. function - Making a star in python turtle - Stack Overflow

    Nov 15, 2015 · I've been trying to make a star in python, but all i keep getting is some zig zag lines. My code is: import turtle star = turtle.Turtle() wn = turtle.Screen() wn.setup(800, 600) …

  3. Python 3 Graphics (Drawing a star) - Stack Overflow

    Jan 8, 2017 · I am currently using Python Graphics. (This is not the same as "Python Turtle", you can download the site package via a google search of "Python Graphics".) After searching for …

  4. python - What do ** (double star/asterisk) and * (star/asterisk) …

    May 27, 2010 · A single star * unpacks a sequence or collection into positional arguments. Suppose we have. def add(a, b): return a + b values = (1, 2) Using the * unpacking operator, …

  5. Python draw n-pointed star with turtle graphics - Stack Overflow

    The problem that I am experiencing is that my function is only able to draw stars with odd numbers of corners (5, 7, 9-sided stars). When I ask it to draw a star with an even number of …

  6. python - What does ** (double star/asterisk) and * (star/asterisk) …

    Aug 31, 2008 · *args (typically said "star-args") and **kwargs (stars can be implied by saying "kwargs", but be explicit with "double-star kwargs") are common idioms of Python for using the …

  7. python - Draw star using tkinter - Stack Overflow

    Feb 26, 2023 · Edit: Forgotten to draw a star. In line 10 add constant 200. Comment out line line 20, 21 and 23; The Tkinter does support jpeg.

  8. python - How to create star markers using matplotlib ... - Stack …

    May 22, 2020 · Yes, things can get confusing. Especially as apart from matplotlib there also are seaborn and pandas plotting. The history of these, and the wish that a lot of old code keeps …

  9. Drawing Stars with turtle in python - Stack Overflow

    Oct 18, 2013 · I need to write a function that draws random stars based upon the question of how many stars the person wants. a=color,b=length and c,d are the starting coordinates.

  10. python - How do I convert a password into asterisks while it is …

    Mar 5, 2016 · If you want a solution that works on Windows/macOS/Linux and on Python 2 & 3, you can install the pwinput module (formerly called stdiomask): pip install pwinput Unlike …

Refresh