Ẽ Ẽm Thư New member Sep 20, 2021 #1 What will be the output of the following Python code? Code: >>> a={4,5,6} >>> b={2,8,6} >>> a+b A. {4,5,6,2,8} B. {4,5,6,2,8,6} C. Error as unsupported operand type for sets D. Error as the duplicate item 6 is present in both sets
What will be the output of the following Python code? Code: >>> a={4,5,6} >>> b={2,8,6} >>> a+b A. {4,5,6,2,8} B. {4,5,6,2,8,6} C. Error as unsupported operand type for sets D. Error as the duplicate item 6 is present in both sets
P Phan Văn Khánh New member Sep 20, 2021 #2 Answer: c Explanation: Execute in python shell to verify. Upvote 0 Downvote