Question: explain work [15] 6. Complete the function definition. from graphics import * import random def randomPoints (n, win) Here n is a positive integer, and
explain work
[15] 6. Complete the function definition. from graphics import * import random def randomPoints (n, win) "Here n is a positive integer, and win is a GraphWin. Draw n randomly placed Points in win so all x and y coordinates could be any integers in the range 0-100, including 0 and 100. For example, if n is 4, you might draw Point(22, 79), Point(86, 0), Point(100, 55), Point(17,90)." [15] 7. Complete the function definition. def allNeg (nums): "nums is a list of numbers. Return, not print, a new list of all the negative numbers from nums. Examples: allNeg (I-3, 5, 0, -9, 42, 8]) returns [-3, 9, -42] allNeg ([O, 1, 2, 3]) returns [I
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
