Question: Question 2: You will write three different functions: a) Write a function that returns the sum of all numbers in a List. a. (you will

 Question 2: You will write three different functions: a) Write a

Question 2: You will write three different functions: a) Write a function that returns the sum of all numbers in a List. a. (you will have two lists - you need to sum and print both output). b) Write a function that returns a list of numbers sorted. a. (you will have two lists - you need to sort and print both output) c) Write a function that returns the intersection of two lists of integers. For example, the intersection of list [2, 3, 1, 5] and [3, 4, 6) is [3] The lists shLuld be inserted by the user. No hardcoded. Ex: def sumList(list): Your code here..... def sortList(list): Your code here ..... de intersection(list1, list2): ... your code here ..... #get two list from the user

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!