Lance R.

asked • 03/26/21

What should I fill in to the spots that I am supposed to fill in?

Use the provided code file to complete the task to match the video. Use the starter code provided. Note that the class is defined in the same file as the main function. This is for convenience and you may leave it that way. No import statement is needed. You must fill in the blanks ( <Fill-In> ), as well as add any other methods or data that is needed. All blanks should be completed with a single line of code (or partial line). You should NOT modify any other code that exists. I repeat you should NOT modify any other code. If you have any questions about this, the answer is, "No, you may not modify any existing code." Only remove the blanks and add other missing methods.


Use a radius of 100 for the head. The mouth is a thicker line. The face is centered at 0, 0.


import turtle

classFace:

def __init__(self):
self.__smile = True
self.__happy = True
self.__darkEyes = True

def draw_face(self):
turtle.clear()
self.__drawHead()
self.__drawEyes()
self.__drawMouth()

def isSmile(self):
<Fill-In>

def isHappy(self):
<Fill-In>

def isDarkEyes(self):
<Fill-In>

def changeMouth(self):
<Fill-In>
self.draw_face()

def changeEmotion(self):
<Fill-In>
self.draw_face()

def changeEyes(self):
<Fill-In>
self.draw_face()

def main():
face = <Fill-In>
face.<Fill-In>

done = False

while not done:
print("Change My Face")
mouth = "frown" <Fill-In> "smile"
emotion = "angry" <Fill-In> "happy"
eyes = "blue" <Fill-In> "black"
print("1) Make me", mouth)
print("2) Make me", emotion)
print("3) Make my eyes", eyes)
print("0) Quit")

menu = eval(input("Enter a selection: "))

if menu == 1:
<Fill-In>
elif menu == 2:
<Fill-In>
elif menu == 3:
<Fill-In>
else:
break
print("Thanks for Playing")
turtle.hideturtle()
turtle.done()
main()


1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.