Examveda
Examveda

What will be the output of the following Python code?
s={1, 2, 3}
s.update(4)
s

A. {1, 2, 3, 4}

B. {1, 2, 4, 3}

C. {4, 1, 2, 3}

D. Error

Answer: Option D


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python