compare dictionaries in Python

 compare dictionaries in Python 


comparison of dictionaries is simaler to other comparison in Python there is no difference it can be done with the help of “==” operator. Let’s see an example of it.

Example :-

  1. x={'a':10,'b':11,'c':12,'d':13} 
  2. b={'a':10,'b':11,'c':12,'d':13} 
  3. c={'a':10,'b':11,'c':12,'d':13} 
  4. print(x==b==c)

Comments

Popular posts from this blog

Programmingshark index 6

Proassignmenthelp index 12

Proassignmenthelp index 27