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 09:00
Howard is designing a chair swing ride. the swing ropes are 5 meters long, and in full swing they tilt in an angle of 29° outside chairs to be 2.75 m above the ground in full swing.
Answers: 1
question
Computers and Technology, 22.06.2019 13:30
1. technician a says horsepower information can be used by consumers to compare the power of different automobile engines. technician b says that manufacturers will often list the horsepower output of their engines in the online service information. who is right?
Answers: 2
question
Computers and Technology, 22.06.2019 21:30
Elements such as fonts colors visual structure graphics and the interface of a web page should complement each other to ensure blank
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
Acloud service provider uses the internet to deliver a computing environment for developing, running, and managing software applications. which cloud service model does the provider offer? a. iaas b. caas c. maas d. paas e. saas
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
English, 14.12.2021 23:00
question
Mathematics, 14.12.2021 23:00
question
Mathematics, 14.12.2021 23:00
question
Mathematics, 14.12.2021 23:00
question
Mathematics, 14.12.2021 23:00
question
Mathematics, 14.12.2021 23:00
Questions on the website: 13722362