thx to Brian Joseph and Mohammad Masoumi.
It was a problem with ‘and’.
More Related Contents:
- Adding a element in dictionary which consist of dictionaries.
- What is the best way to implement nested dictionaries?
- How does collections.defaultdict work?
- Filter dict to contain only certain keys?
- When is del useful in Python?
- How do I write a Python dictionary to a csv file? [duplicate]
- merging several python dictionaries
- How to convert a dataframe to a dictionary
- How to save a dictionary to a file?
- How to get the difference between two dictionaries in Python?
- How can I access the nested data in this complex JSON, which includes another JSON document as one of the strings?
- How to get rid of double backslash in python windows file path string? [duplicate]
- How do I combine two lists into a dictionary in Python? [duplicate]
- How to reverse a dictionary that has repeated values
- How do I serialize a Python dictionary into a string, and then back to a dictionary?
- Get all keys of a nested dictionary [duplicate]
- How to create a dictionary of two pandas DataFrame columns
- Why do I get an error “‘unicode’ object does not support item deletion” when trying to delete values from a JSON object?
- How to split dictionary into multiple dictionaries fast
- Using a dict to translate numbers to letters in python
- How can I make a dictionary (dict) from separate lists of keys and values?
- How to merge dicts, collecting values from matching keys?
- Is self.__dict__.update(**kwargs) good or poor style?
- How can I avoid “RuntimeError: dictionary changed size during iteration” error?
- Why updating “shallow” copy dictionary doesn’t update “original” dictionary? [duplicate]
- dataframe to dict such that one column is the key and the other is the value [duplicate]
- Using Python class as a data container [closed]
- How can I convert string values from a dictionary, into int/float datatypes?
- Rename columns in Pandas based on a dictionary
- In what case would I use a tuple as a dictionary key? [closed]