For this exercise we will use the module turtle this

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: rs, using the import command. Later in the course, we will speak about the importance of import and how python interprets this command and finds the relevant code. For this exercise we will use the module Turtle. This module (or a python file that contains definitions and statements), allow us to create simple graphics. Type the following code into a new file named HelloTrutle.py ############################### ############################## #FL elTrl.y IE:Hloutep #WIE ornm orlgn+yu_d RTR:yu_ae+yu_oi ori #EECS nr2se020321 XRIE:itoc x 01­04 #DSRPIN ECITO: #Asml rga htpit HloWrd sn utegahc ipepormta rns"el ol"uigTrl rpis ############################### ############################## ipr ute mottrl #ttefrtedslywno il o h ipa idw trl.il(Fnwt uteGahc n yhn) utette"u ihTrl rpisadPto" trl.p) ittepnu,n rwn uteu( #lf h e p odaig trl.oo­0,10 utegt(10­0) trl.on) e sdw,daignw utedw( #pni on rwn o #da qae rwasur trl.oo10­0) utegt(0,10 trl.oo1010 utegt(0,0) trl.oo­0,0) utegt(1010 trl.oo­0,10 utegt(10­0) #da ice rwacrl trl.p) uteu( trl.oo0­0...
View Full Document

Ask a homework question - tutors are online