Question: 1 . Find the common elements in two lists using a for loop: list 1 = [ 1 , 2 , 3 , 4 ,

1.Find the common elements in two lists using a for loop:
list1=[1,2,3,4,5,6,9,3,7,9]
list2=[3,4,5,6,7,65,4,7,3,2,8]
2.Find the first occurrence of a number 8 in a my_list using a loop:
my_list =[3,7,9,2,80,45,34,78,8,2,7,90,93,12,46,8,34,8,4,90,4]

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 Programming Questions!