subject

[goal] using your text editor, write the function sumsquares(alist). the function takes a list as an input and returns (not prints) the sum of the squares of the all the numbers which absolute value is divisible by 3. if an element in the list is not a number, the function should ignore the value and continue. when the function receives an input that is not a list, code should return an error message to the user. hints: review the type() or isinstance() methods grading: for this assignment only, gradescope will test your code with 5 different inputs for 2 points each. this will happen right after you upload your file. make sure you follow the given instructions, otherwise, gradescope will not show you the grading report

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:30, melissalopez12
Write a function so that the main program below can be replaced by the simpler code that calls function original main program: miles_per_hour = float( minutes_traveled = float( hours_traveled = minutes_traveled / 60.0 miles_traveled = hours_traveled * miles_per_hour print('miles: %f' % miles_traveled) sample output with inputs: 70.0 100.0 miles: 116.666667
Answers: 3
image
Computers and Technology, 22.06.2019 15:50, minideeri
The file sales data. xlsx contains monthly sales amounts for 40 sales regions. write a sub that uses a for loop to color the interior of every other row (rows 3, 5, etc.) gray. color only the data area, columns a to m. (check the file colors in excel. xlsm to find a nice color of gray.)
Answers: 2
image
Computers and Technology, 23.06.2019 12:30, Prettygirlyaya
How is the brightness of oled of the diaplay is controled
Answers: 1
image
Computers and Technology, 23.06.2019 16:00, cravens511peeelg
An english teacher would like to divide 8 boys and 10 girls into groups, each with the same combination of boys and girls and nobody left out. what is the greatest number of groups that can be formed?
Answers: 2
You know the right answer?
[goal] using your text editor, write the function sumsquares(alist). the function takes a list as an...

Questions in other subjects: