Question
Please Use python program language. Kindly include code with comments (to help with understanding) and screenshot of output Reference code in Mississippi turtles_template.py: Import additional
Please Use python program language. Kindly include code with comments (to help with understanding) and screenshot of output
Reference code in Mississippi turtles_template.py:
"""Import additional modules below this line (starting with unit 6)."""
from turtle import *
"""Write new functions below this line (starting with unit 4)."""
def start():
"""This function initializes the window and the turtle.
Do not modify this function or any of the properties it sets.
"""
setup(600, 400)
width(9)
color("purple")
def draw_e():
"""Write this function."""
def draw_i():
"""Write this function."""
def draw_l():
"""Write this function."""
def draw_M():
"""Write this function."""
def draw_p():
"""Write this function."""
def draw_r():
"""Write this function."""
def draw_s():
"""Write this function."""
def draw_t():
"""Write this function."""
def draw_u():
"""Write this function."""
def main():
"""After these lines, call your letter drawing functions
as needed to draw the words "Mississippi turtles".
"""
"""Do not change anything below this line."""
if __name__ == '__main__':
start()
main()
done()
05.4 - Mississippi Turtles Starting from the code provided in mississippi_turtles_template.py, complete each of the letter functions so that they will draw that letter on the screen. It helps to imagine each letter sitting inside of a rectangle (called a bounding box) as shown in Figure 1. To draw a letter, assume the turtle starts in the lower left corner of the bounding box, and make sure it ends in the lower right corner. The width of most letters should be about 60 pixels. Then fill in the main() function so that it calls each of the letter functions at the appropriate place to write the message "Mississippi turtles" on the screen as shown in Figure 2. Save your program asmississippi_turtles_login.py, where login is your Purdue login. Then submit it along with a screenshot showing the result. Figure 1: The letter ' e ' in a bounding box. Figure 2: A message drawn with the turtle for Exercise 05.4. Hints: - Your entire drawing must fit in the provided canvas. - Do not modify the size of the canvas provided in the template. - Start drawing in the northwest corner to make sure everything fits
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started