52818/what-is-the-use-of-operator-in-dictionary-in-python
Yes you can use '==' operator to compare 2 dictionaries.
my_dict1 = {'name':'Jack', 'age': 26} my_dict2 = {'name':'Jack', 'age': 26} my_dict1 == my_dict2 # this will print true
mydict1['name'] == mydict2['name'] # this will print true
Hi, @Roshni, It is a Floor Divisionoperator, which ...READ MORE
Polymorphism is the ability to present the ...READ MORE
raw_input fuction is no longer available in ...READ MORE
You can try the following in a ...READ MORE
suppose you have a string with a ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
When an error occurs, or exception as ...READ MORE
str() is mostly used to create output ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.