Question: use python 5) [15 pts] Write a Python code which finds common values between given two lists A and B by using for loop and
use python
![use python 5) [15 pts] Write a Python code which finds common](https://s3.amazonaws.com/si.experts.images/answers/2024/09/66e052f3ce7b3_33166e052f3360de.jpg)
5) [15 pts] Write a Python code which finds common values between given two lists A and B by using for loop and if statement? 6) [10 pts] Sequential Search: In computer science, linear search or sequential search is a method for finding a particular value in a list that checks each element in sequence until the desired element is found or the list is exhausted. The list need not be ordered. That is, inside the given list, I want to check whether desired value is there or not, if it is there it will print True and the position of the desired value For example, list [11,23,58,31,56,77,43,12,65,19] is given, I check whether 56 is in the list. Since 56 is in the list it will print True and 5 (which is the position of 56) 7) [20 pts] How to get the nth largest value of given array? (Use for loop for this problem. Do not use existing codes. Use your own codes) For example in given ist 1.23.5831.56.77431 2.65.191 if n is defined as 3. The program will print 58. (Use for loop. In each step of the for loop find the maximum observation of the list and remove this observation from the list. And repeat this n-1 times and break the loop and find the maximum observation of the updated list)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
