Professional Documents
Culture Documents
Laughing Man Data
Laughing Man Data
laughing_man.pensize(5)
laughing_man.pencolor("blue")
laughing_man.penup()
laughing_man.goto(0, 40)
laughing_man.pendown()
laughing_man.left(360)
laughing_man.fillcolor('white')
laughing_man.begin_fill()
laughing_man.circle(40, -180)
laughing_man.end_fill()
laughing_man.penup()
laughing_man.goto(15, 40)
laughing_man.pendown()
laughing_man.fillcolor('black')
laughing_man.begin_fill()
laughing_man.circle(-25, 180)
laughing_man.end_fill()
# continueAction = 'yes'
# while continueAction == 'yes':
# action = input("Enter an action(move, turn right, change color, draw
polygon): ")
# if action == "move":
# length = int(input("Enter numbe rof pixels to move: "))
# t.foward(length)
# elif action == "turn right":
# degrees = int(input("Enter degrees to turn: "))
# t.right(degrees)
# elif action == "change color":
# color = input ("Enter the color: ")
# t.color(color)
# elif action == "draw polygon":
# try:
# sideLength = int(input("Enter side length: "))
# numSides = int(input("Enter number of sides: "))
# xPos = int(input("Enter x position: "))
# yPos = int(input("Enter y position: "))
# except:
# print("invalid number entered.")
# else:
# drawRegPoly(sideLength, numSides, xPos, yPos)
# else: # Message for the ending Terminal
# print("Seeya later Netrunnner")
# continueAction = ("Do you want to give another action? (yes/no)")
# #Revolving laughing_man
# for i in range(6):
# laughing_man.forward(180)
# laughing_man.right(90)
# laughing_man.goto(-100,100)
turtle.done()