Create a function in Python named sumListDiv2 which takes as input a list of integers and returns the sum of the elements of the list which are divided by 2. Don't forget to add the type contract as commen

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter10: Application Development
Section: Chapter Questions
Problem 9VE
icon
Related questions
Question

Create a function in Python named sumListDiv2 which takes as input a list of integers and returns the sum of the elements of the list which are divided by 2. Don't forget to add the type contract as comments.

#test Q2
sommeListeDiv2 ([1, 4, 3, 8,5])
12
EK
sommeListeDiv2 ([])
vez as
0
somme Liste Div2 ([4, -10,7])
-6
ยอม
es sites
onsul
Transcribed Image Text:#test Q2 sommeListeDiv2 ([1, 4, 3, 8,5]) 12 EK sommeListeDiv2 ([]) vez as 0 somme Liste Div2 ([4, -10,7]) -6 ยอม es sites onsul
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Binary Search Algorithm
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning