English, asked by sivatech2622, 8 months ago

What is the result of this statement :{'b','a','r'}&set('qux')

Answers

Answered by poojan
10

The result of the given statement is: set()

Explanation:

In python, '&' operator refers to the 'set intersection' operation between the sets given. i.e., A & B gives the common elements between them.

set('qux') gives {'x', 'u', 'q'} in interpretation.

Now, the intersection between the sets will be {'b', 'a', 'r'} & {'x', 'u', 'q'} will be an empty set as there are no common elements in them.

So, it results in an empty set as an output i.e., set()

Learn more:

1. Ch+=2 is equivalent to​

brainly.in/question/21331324

2. A CSS file cannot be linked to a web page. State True or False.

brainly.in/question/21107345

Similar questions