Honors 1000, Productive Data Manipulation in Python and SQL (Fall 2023)
Homework 2 (Due: 8 October 2023)
Part I
Write a Python program, called art.py, that uses the graphics package to draw a scene shown below:.
You may choose your own color schemes and may also vary the scene, by adding other objects to the scene.
Part II
Write the following functions that draw a forest of trees at various locations (say 5 locations) on the canvas.# drawTree: This function takes as input win, the canvas window object, # the color for the upper part of the tree, the color for the trunk, # x and y coordinate that corresponds to top left corner of the rectangle # enclosing the tree, the trunk width, the trunk height, the triangle # width, and the triangle height. def drawTree(win,tree_color,trunk_color,x,y,trunk_w,trunk_h,triangle_w,triangle_h): pass def main(): pass main()