write a program that draws some sort of faces using python programming
Please find the answer below::


from graphics import *
win = GraphWin('Smiley Faces', 400, 400) # give title and
dimensions
win.setBackground('orange')
win.setCoords(0, 0, 400, 400)
def drawFace(center, size,window):
head = Circle(center,size*20)
head.setFill("green")
head.draw(win)
mouth = Circle(center, size*13)
mouth.setFill("red")
mouth.setOutline("red")
mouth.draw(win)
smile = Circle(center, size*14)
smile.move(0,size*4)
smile.setFill("green")
smile.setOutline("green")
smile.draw(win)
eyebrow = Circle(center,size*4)
eyebrow.move(-size*8,size*10)
eyebrow.setFill('black')
eyebrow.draw(win)
eyebrow2 = eyebrow.clone()
eyebrow2.draw(win)
eyebrow2.move(size*16, 0)
eyecircle = Circle(center,size*4)
eyecircle.move(-size*8,size*9)
eyecircle.setFill('green')
eyecircle.setOutline('green')
eyecircle.draw(win)
eyecircle2 = eyecircle.clone()
eyecircle2.draw(win)
eyecircle2.move(size*16, 0)
eyelid = Circle(center,size*3)
eyelid.move(-size*8,size*8)
eyelid.setFill('brown')
eyelid.draw(win)
eyelid2 = eyelid.clone()
eyelid2.draw(win)
eyelid2.move(size*16, 0)
eye = Circle(center, size*3)
eye.move(-size*8,size*6)
eye.setFill('orange')
eye.draw(win)
eye2 = eye.clone()
eye2.draw(win)
eye2.move(size*16, 0)
pupil = Circle(center,size)
pupil.move(-size*9,size*7)
pupil.setFill('blue')
pupil.draw(win)
pupil2 = pupil.clone()
pupil2.draw(win)
pupil2.move(size*16,0)
nose = Circle(center,size*3)
nose.move(0,-size*2)
nose.setOutline('yellow')
nose.setFill('yellow')
nose.draw(win)
def main():
center = Point(200,200)#top to bottom, increasing radius
drawFace(center,4,win)
message = Text(Point(200, 380), 'Click to exit')
message.setFill('blue')
message.draw(win)
win.getMouse()
win.close()
main()
output:
write a program that draws some sort of faces using python programming
PYTHON (Basic GUI Programming Using Tkinter):
(Draw an arrow line)
Write a program that randomly draws an arrow line when the Draw
a Random Arrow Line button is clicked, as shown in Figure:
㊥ Random an Arrow Line Draw a Random Arrow Line
Write a python program to sort numbers in descending order using insertion sort? Enter numbers: 1 2 3 4 4 3 2 1
Using Python, please write a program that draws the following shapes using turtles and tkinter: Tetrahedron Cube Octahedron Dodecahedron Icosahedron Please make sure they're drawn out using only lines in the 2D dimension. All the shapes need to be in the same window. No need to color them. Thank you.
using python programming language
write a program that will manipulate the below excel record to
the output provided
This is what the output should look like
Name Path ID Python-Excel C:\Users Desktop Python-Excell, C:Users IDesktop|Python-Excel2 PE12370, P009872,CD12890,U199912
Python Programming Write a program that counts how often a word occurs in a text file. Input: Ask the user for the name of an ASCII text file. Output: Display the numbers of top frequently appeared words and their frequencies. Pseudocode: 1) Read the file 2) Split the file into words 3) Count each word 4) Sort the words by frequencies, starting with the most frequent ones 5) Internally you should use some sort of data structure to keep track...
Python Programming 4th Edition Write a program using for loop to display numbers 1 through 5
Use
Python programming
#3 on page 47 of your python programming book: Write a Tipper program where the user enters a restaurant bill total. The program should then display two amounts: a 15% tip and a 20% tip. Name your file tipper.py Previous Next.
Write a Python program to create some recursive artwork, using the turtle module by using recursive functions. This program should look very creative, wanna get some points!
Python 3.6
I need the code ready to run using GUI programming
Write a program for the Knight's Tour problem. Your program should let the user move a knight to any starting square and click the Solve button to animate a knight moving along the path, as shown below.
(Python Programming)Write a Python program that prompts the user to enter a list of words and stores in a list only those words whose first letter occurs again within the word (for example, 'Baboon'). The program should display the resulting list.