human
Multiset Equivalence Problem | Python3 program to check if two given multisets are equivalent.
sort the elements of both multisets.
Return true if both multisets are same ..
Driver code"
How can the above be solved in Python?
assistant
#Here is code to multiset Equivalence Problem and the other steps required.
 def areSame ( a , b ) :
	a . sort ( ) ;
	b . sort ( ) ;
	return ( a == b ) a = [ 7 , 7 , 5 ] ;
b = [ 7 , 5 , 5 ] ;
if ( areSame ( a , b ) ) :
	print ( " Yes " ) ;
else :
	print ( " No " ) ; ;