Post

Prem Prakash
Prem Prakash@4EverPrem·
@Python_Dv C. List comprehension. [x for x in a if x not in b] => all elements of a which are not in b
English
0
0
0
89
aldo núñez
aldo núñez@Aldo_Nunez_T·
@Python_Dv It is an example of comprehension list. newlist = [expression for item in iterable if condition == True] c = [x for x in a if x not in b] In this case, c is a list of all the elements in list "a" that are not in list "b". c. c <- [8, 12]
English
0
0
0
123
Cyril
Cyril@CyrilxDev·
@Python_Dv List comprehension… The answer is C All elements that are in “a” but not in “b”
English
0
0
0
38
Ayush
Ayush@ayush152002·
@Python_Dv Option C concept of list comprehension
English
0
0
0
60
Dood_057
Dood_057@edgarcia53·
@Python_Dv c. [8,12], these two elements are not in b so they are included in new list c.
English
0
0
0
74
Paylaş