Examveda

What will be the output of the following Python code?
>>> a={5,6,7}
>>> sum(a,5)

A. 5

B. 23

C. 18

D. Invalid syntax for sum method, too many arguments

Answer: Option B


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python