Ask Question
19 June, 15:52

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.

+1
Answers (1)
  1. 19 June, 16:21
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers