Ask Question
13 April, 18:41

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. 13 April, 22:22
    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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers