Ask Question
21 May, 13:37

Write a method in bag such that if b1 and b2 were bags then b1+b2 gives a new bag representing the union of the two bags.

+4
Answers (1)
  1. 21 May, 17:12
    0
    The method to represent that if b1 and b2 were bags then b1 + b2 gives a bag representing the union of the two bags can be explained as follows:

    a. input (b1)

    a. input (b2)

    b = Bag ()

    b. input ()

    Print (b1+b2)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a method in bag such that if b1 and b2 were bags then b1+b2 gives a new bag representing the union of the two bags. ...” in 📙 Mathematics if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers