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, 21.06.2019 23:30
Step 1: choose your topics review the project milestone reflections you submitted for modules 1 through 4. choose the one major idea or concept from each module that you feel most applies to your life. in addition, choose an important concept from module 5 that applies to your life. step 2: write your guidebook for each module: write a catchy headline that clearly and concisely sums up your chosen idea or concept write a brief explanation that includes a description of the concept, why it is important, and how it can be applied to your life to make a positive impact choose an exciting, powerful, or engaging image that illustrates your concept remember, you are writing one for each module, so you will have a total of five headlines, five descriptions, and five images. step 3: design your guidebook choose a format to present your digital guidebook. there are many 21st century tools available for creating and submitting your work in the online environment. for more information on tools your school uses, contact your instructor or visit the web 2.0 tools area.
Answers: 3
question
Computers and Technology, 22.06.2019 12:40
In a response of approximately 50 words, explain why it would be essential for the successful a/v technician to participate in additional coursework, presentations and seminars offered by equipment manufacturers as well as annual conferences attended by colleagues in the industry.
Answers: 1
question
Computers and Technology, 22.06.2019 16:00
Why should characters such as / \ " ' * ; - ? [ ] ( ) ~ ! $ { } < > # @ & | space, tab, and newline be avoided in file names?
Answers: 2
question
Computers and Technology, 25.06.2019 02:30
Technology has changed communications by replacing or supplementing traditional modes of communication that were primarily
Answers: 2
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
Mathematics, 12.02.2020 06:42
question
Mathematics, 12.02.2020 06:42
question
English, 12.02.2020 06:42
question
Mathematics, 12.02.2020 06:42