import turtle
from random import*
def star(a,b,c,d):
x=5
y=0
turtle.color(a)
turtle.begin_fill()
turtle.penup()
turtle.goto(c,d)
turtle.pendown()
while x>0:
turtle.forward(b)
turtle.right(144)
turtle.forward(b)
x-=1
turtle.end_fill()
star('red',100,0,0)
def length():
randvar=randrange(5,71)
def x():
randvar=randrange(-280,281)
def y():
randvar=randrange(-200,201)
def night_sky():
z=int(input('How many stars do you want?'))
a=random_color
b=length
c=x
d=y
while z>0:
star(a,b,c,d)
z-=1
There are a couple of ways: 1. Use turtle. It is a module that can be imported. 2. The print function 3. Use tkinter. It is a module in python that you can import.
python filename.py
open MS-DOS in the directory you have the python file in. type "python [INSERTNAMEOFSCRIPT]"
#LMGTFY Guido van Rossum, a Dutch computer programmer is the author of the programming language Python. Among Python programmers and the Python community, van Rossum us known as the "Benevolent Dictator For Life" (BDFL).
To draw a house in Python using a GUI, you can use the tkinter library. Start by creating a canvas with Canvas() and then use methods like create_rectangle() to draw the house's base and create_polygon() for the roof. Here's a simple example: import tkinter as tk def draw_house(canvas): canvas.create_rectangle(50, 150, 150, 250, fill="lightblue") # House base canvas.create_polygon(50, 150, 150, 150, 100, 100, fill="brown") # Roof root = tk.Tk() canvas = tk.Canvas(root, width=200, height=300) canvas.pack() draw_house(canvas) root.mainloop() This code creates a simple house shape with a rectangular base and a triangular roof.
Get a picture of the internet, and draw proportionate.
Draw seven points!
There are a couple of ways: 1. Use turtle. It is a module that can be imported. 2. The print function 3. Use tkinter. It is a module in python that you can import.
check out this site... it shows you how to draw a nautical star. hope this helps someone. http://www.dragoart.com/how-to-draw-a-nautical-star-t288-1.htm go die in a hole
There are a few different types of star that can be drawn including a six pointed star and a five pointed star. Generally the best was to draw a perfect star is either with a lot of practice or to use a stencil.
Box office draw.
To create a star in Scratch, you can either draw it using the built-in paint editor or use code to draw it programmatically. If you choose to draw it, open the "Costumes" tab, select the paintbrush tool, and create a star shape. Alternatively, you can use the "Pen" blocks in the coding area to draw a star by moving the sprite in a specific pattern, adjusting the angles and lengths of the lines to achieve the star shape.
Draw a hybrid topology with a ring backbone and three bus networks.P
A person can draw a picture of a milk snake by studying a photo of the snake itself. A person should be sure to include important and unique features such as the light colored body with the orange spots.
Michael Palin
you just draw it
a star maybe or a diamond