Question: . Define a function named getCircles with a single parameter: The parameter, called shapeList in this description, is a list of strings of the The
Define a function named getCircles with a single parameter: The parameter, called shapeList in this description, is a list of strings of the The function should return a list of dictionaries. The input list is a list of string of the types created in Milestone The function looks through that list and identifies each string that starts with the word circle. Each circle entry is converted into a dictionary with the following keyvalue pairs: 'color': a list containing the integers red, green, and blue color channels x: integer for center x coordinate y: integer for center y coordinate 'radius': integer for radius 'depth': integer for depth All of the dictionaries are added into a single list in the order they appeared in the input list and returned. Test Cases: getCirclescircle should evaluate to color: x: y: 'radius': 'depth': getCirclescircle 'circle should evaluate to color: x: y: 'radius': 'depth': color: x: y: 'radius': 'depth': getCirclescircle 'circle 'rectangle 'rectangle should evaluate to color: x: y: 'radius': 'depth': color: x: y: 'radius': 'depth':
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
