subject

9. Write a function called sum_arrays that takes two lists of the same length and returns a list where each element is the sum of the
elements at that index in the original list. The function should retum the empty
list if the parameters are not the same size
Sample Run 1:
I
a = (1, 2, 3, 4, 5]
b = [10, 20, 30, 40, 50]
print(sum_arrays (a, b))
Should output
[11, 22, 33, 44, 55]
Sample Run 2:
a = [1, 2, 3, 4, 5)
b = (10, 20, 30, 40, 50, 60]
print(sum_arrays(a, b))
Should output
[]

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:30
How will you cite information that is common knowledge in your research paper?
Answers: 1
question
Computers and Technology, 22.06.2019 15:20
This os integrated the processing power of windows nt with the easy-to-use gui of windows 98. windows 2000 windows 3.11 windows for workgroups windowa millennium edition
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
In vista and windows 7, the appearance and personalization option allows you to change the
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
After you present a proposal, the committee starts asking you questions, some beyond the strict focus of your proposal. they ask questions about implications in other fields and knowledge about other fields. you are asked to redo your proposal. what is most likely missing? breadth of material depth of material clarity of material details of material
Answers: 1
You know the right answer?
9. Write a function called sum_arrays that takes two lists of the same length and returns a list whe...
Questions
question
World Languages, 25.11.2021 14:00
question
Mathematics, 25.11.2021 14:00
Questions on the website: 13722360