Difference between revisions of "Turtle - Initials Assignment"
From WLCS
(Created page with "'''Objective(s):''' * You will use the Python turtle module to draw your initials on the screen * You will define functions that draw different letters * You will call turtle fun...") |
|||
Line 15: | Line 15: | ||
'''Directions:''' | '''Directions:''' | ||
# Create a file named initials.py | # Create a file named initials.py | ||
− | # Define a function named '''firstInitial()'' that draws your first name's initial | + | # Define a function named '''firstInitial()''' that draws your first name's initial |
# Define a function named '''lastInitial()''' that draws your last name's initial | # Define a function named '''lastInitial()''' that draws your last name's initial | ||
# Define a function named '''fullInitials()''' that '''calls''' firstInitial() and lastInitial() and draws your full initials | # Define a function named '''fullInitials()''' that '''calls''' firstInitial() and lastInitial() and draws your full initials |
Revision as of 10:38, 6 February 2015
Objective(s):
- You will use the Python turtle module to draw your initials on the screen
- You will define functions that draw different letters
- You will call turtle functions to move the turtle around the screen
- You will call the functions that you define to draw your letters
Resources:
Function Reminders:
- Define functions at the top
- Function calls always have parentheses
Directions:
- Create a file named initials.py
- Define a function named firstInitial() that draws your first name's initial
- Define a function named lastInitial() that draws your last name's initial
- Define a function named fullInitials() that calls firstInitial() and lastInitial() and draws your full initials
- Test out fullInitials() with a function call
- Now add some move commands that moves the turtle around the screen before your fullInitials() function call (*not* before the definition)
- Make your program draw your full initials in each of the four corners (you must use function calls)