Kizspy | Question: 21
(Choose 1 answer)
Suppose, you are given 2 list - City A and City B.
City_A = [1,2,3,4]
City_B = [2',3',4','5']
In both cities, some values are common. Which of the following code will find the name of all cities which are present in "City_A" but not in "City_B".
A. [i for i in City A if i not in City_B]
B. [i for i in City B if i not in City_A]
C. [i for i in City A if i in City_B]
D. [i for i in City_B if i in City_A]