Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Turtle Patterns 1 : If you look around the web, you can find examples of many projects that draw pictures, scenes, landscapes, geometric patterns, or

Turtle Patterns 1: If you look around the web, you can find examples of many projects that draw pictures, scenes, landscapes, geometric patterns, or interesting doodles using Python turtles. For this project you will draw a picture, scene, landscape or doodle that has identifiable patterns. The things that appear in your doodle must be built by combining 3 different atomic shapes or patterns and using repetition. Atomic means its a building block that you dont break down into anything else. Use your imagination, but if you struggle too much, simplify your goals. User inputs for this project should be the turtle windows width and height values from the console. They should be positive integers only and should be validated. These values should then be used to set the size of the window. You must document in your module docstring what the window size should be.
Key ideas in this project are HOW you organize your code. Use parameterized functions as building blocks and loops wherever there is repeated code with variations. They give you an idea, some skeleton code, some test code, and a little bit of example code to use.
Here is the required starter code/some of my stuff that cannot have anything in it deleted. I would apreciate finished code that fulfills criteria and a walkthrough:
'''
Project Name:
Author:
Due Date: YYYY-MM-DD
Course:
'''
Put your description here, lessons learned here, and any other information
someone using your program would need to know to make it run.
'''
# (3) add functions here that your main program calls
# to do stuff.
def main():
'''
Program starts here.
'''
try:
# (1) replace pass with your code
pass
except ValueError:
print('Width and height must be positive integers.')
return
if width 1 or height 1:
print('Width and height must be positive integers.')
return
# (2) replace pass with your code
pass
if __name__=="__main__":
main()
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions