Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON Exercise 1. Write a function that receives two lists of numbers. The function must add the elements of the two lists one by one

PYTHON

Exercise 1. Write a function that receives two lists of numbers. The function must add the elements of the two lists one by one and return a third list with the result of the sum Example: Assume that the two arrays that the function receives as a parameter are the following:

list1 = [4,2,5,7,8,9,1]

list2 = [1,2,3,4,5,6,7]

The function must add the two lists and must return the following:

[5, 4, 8, 11, 13, 15, 8]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions