Examveda

What will be the output of the following code:
set1 = {1, 2, 3}
set2 = {3, 4, 5}
print(set1.intersection(set2))

A. {3}

B. {1, 2, 3}

C. {3, 4, 5}

D. {1, 4, 5}

Answer: Option A


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python