What is the answer ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

What is the answer ?

Drag and drop from the options below to print only the items in the set "a" that are not in the set "b". print(____ _____ _____) b & - a |

23rd May 2018, 9:48 AM
Arda Çinar
Arda Çinar - avatar
8 Answers
+ 1
a = {1, 2, 3, 4, 1} b = {2, 1} print(a - b)
23rd May 2018, 10:40 AM
Markus Kaleton
Markus Kaleton - avatar
+ 6
Answer: a - b
16th Apr 2019, 4:34 PM
Darius Bartlett
Darius Bartlett - avatar
+ 3
Answer: a - b
4th Jul 2019, 7:50 PM
Abdullahi Hassan
+ 2
What is the answer ? Drag and drop from the options below to print only the items in the set "a" that are not in the set "b". print(____ _____ _____) Answer: a - b
5th Dec 2018, 11:05 AM
Jayalakshmi @ Madhumitha
Jayalakshmi @ Madhumitha - avatar
0
answer is a-b
10th Feb 2020, 8:16 PM
Disha Prajapati
Disha Prajapati - avatar
0
a-b
1st Feb 2022, 9:40 AM
KESHAV KONDABALA
KESHAV KONDABALA - avatar
0
print(a-b)
3rd Aug 2022, 4:21 PM
Sue Yavuz
Sue Yavuz - avatar
0
thanks
10th Nov 2022, 9:46 PM
Mykhael Thompson
Mykhael Thompson - avatar