Question: QUESTION 4 The following Python code segment uses information supplied in a list called data _ set. Each element of data _ set is a

"QUESTION 4
The following Python code segment uses information supplied in a list called data_set. Each element of data_set is a triple (i.e, three values), specifying certain properties for drawing a dot in Turtle. The properties include the co-ordinates for the location of the dot's centre on the Turtle canvas and a string representing the colour of the dot to be drawn. The size of the dot depends on its position. Note that all of the dots must be drawn on the left hand side of the canvas.
Your task is to determine which of the following are valid values for data_set, in order toQUESTION 4 The following Python code segment uses information supplied in a list called data_set. Each element of data set is a triple (i.e, three values), specifying certain properties for drawing a dot in Turtle. The properties include the co-ordinates for the location of the dot's centre on the Turtle canvas and a string representing the colour of the dot to be drawn. The size of the dot depends on its position. Note that all of the dots must be drawn on the left hand side of the canvas. for data in data set: penup() goto (data[0], data [2]) color (data[1]) pensize (abs (data[0])/10) dot () Your task is to determine which of the following are valid values for data_set, in order to produce such a drawing in Turtle. data_set =[['red',-50,5),('blue',-100,10],['green',-200,2001,['yellow',-150,-1001] O data_set =[(-50,5, 'red'],[-100,10, 'blue'],[-200,200, 'green'],[-150,-100,""yellow']] O data_set =[[red,5,-50],[blue XI01,10,-100],[green,200,-200],[yellow,-100,-150]] O data_set =[['red',5,-50],['blue',10,-100],['green',200,-200),('yellow',-100,-150]] O data_set =[[5,-50, 'red'],[10,-100, 'blue'],[200,-200, 'green'],[-100,-150, 'yellow']] data set =[(-50, 'red', 5),(-100, 'blue', 10),1-200, 'green', 200],[-150, yellow', -100]]"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!