diff --git a/DSA in Python/Day-1/Assignment 3.txt b/DSA in Python/Day-1/Assignment 3.txt index 6485da6..f9a2e51 100644 --- a/DSA in Python/Day-1/Assignment 3.txt +++ b/DSA in Python/Day-1/Assignment 3.txt @@ -2,10 +2,13 @@ def check_double(list1,list2): new_list=[] - #write your logic here + for i in list1: + for j in list2: + if i*2 == j: + new_list.append(i) return new_list -#Provide different values for the variables and test your program + list1=[11,8,23,7,25,15] list2=[6,33,50,31,46,78,16,34] -print(check_double(list1, list2)) \ No newline at end of file +print(check_double(list1, list2))