Reputation: 1
I am trying to create a dictionaryin python, but facing an Unresolved reference 'count' error.
dict = {"timestamp": 0.1, counter: 1}
i have noticed that when Im creating a variable name counter with any numeric value the error disappears.
I am using Pycharm 2020.2.2.
Upvotes: 0
Views: 1974
Reputation: 391
counter would need to be "counter"
dict = {"timestamp": 0.1, "counter": 1}
Upvotes: 2