HoThDo
HoThDo

Reputation: 1

Unresolved reference - Python dictionary

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

Answers (1)

John Holmes
John Holmes

Reputation: 391

counter would need to be "counter"

dict = {"timestamp": 0.1, "counter": 1}

Upvotes: 2

Related Questions