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)
9.5m questions
12.2m answers