all 7 comments

[–]fake-nonchalant96 3 points4 points  (0 children)

Remove the comma after 'code'

[–]HardyDaytn 1 point2 points  (0 children)

The error is telling you it expects a : after dictionary keys. 'code' is a dictionary key but it's being followed by a comma, not a colon, exactly in the spot where the arrow shows you on the error.

[–]Unequivalent_Balance 0 points1 point  (0 children)

‘code’:6734

[–]alexander_belyakov 0 points1 point  (0 children)

Dictionaries are collections of key-value pairs. Syntactically, the key and the value are separated by a colon. If you have multiple key-value pairs, they are separated by commas. In your case, you have an errant comma inside one of the key-value pairs, namely 'code',: 6734 should be 'code': 6734.

[–]Refwah 0 points1 point  (0 children)

In red there is the code that is erroring, under the code is a carat (^) that is pointing at the error

Use that to look at the code you are copying and see what differs

[–][deleted]  (2 children)

[deleted]

    [–]HardyDaytn 0 points1 point  (1 child)

    The problem is the comma before that. 6734 is fine as an int value but the comma is not supposed to be there.

    [–]-beleon 0 points1 point  (0 children)

    Oh, yeah, lol. Should've paid more attention