subject

If you have a list consisting of just numbers, then you can add all of the values in the list using the sum() function. if your list consists of some numbers and some values of other types (e. g., lists, strings, sets), the sum() function will fail. in this question, we're asking you to write a function that will sum all of the numbers in a list, ignoring the non-numbers. the function below takes one parameter: a list of values (value_list) of various types. the recommended approach for this: (1) create a variable to hold the current sum and initialize it to zero, (2) use a for loop to process each element of the list, (3) test each element to see if it is an integer or a float, and, if so, add its value to the current sum, (4) return the sum at the end.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
Which location-sharing service offers items for users as a gaming component and also allows them to collectively link their check-ins to publish a trip? a. whrrl b. buzzd c. foursquare (this option is wrong i already tried) d. gowalla for plato
Answers: 2
question
Computers and Technology, 23.06.2019 11:00
Sports and entertainment class, your goal is to increase attendance and make a profit for a game by getting your team on a winning track with total salaries less than $3,000,000
Answers: 3
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
question
Computers and Technology, 25.06.2019 06:00
Sam needs to create a spreadsheet for his coworkers. they will need to follow a crossed a long road of data. sam would like to make his spreadsheet easy to read. sam should
Answers: 1
You know the right answer?
If you have a list consisting of just numbers, then you can add all of the values in the list using...
Questions
question
Mathematics, 10.03.2020 04:38
question
Mathematics, 10.03.2020 04:38
Questions on the website: 13722359