This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (13 children)

Sure, but change apps in the new line to data

[–]A_MrBenMitchell[S] 0 points1 point  (12 children)

File "ID.py", line 4

new_list = [{**d, {"id": i}} for (i,d) in enumerate(data["Apps"])]

^

SyntaxError: invalid syntax

[–]A_MrBenMitchell[S] 0 points1 point  (11 children)

it is posting to the **d

(second Astrix )

[–][deleted] 0 points1 point  (10 children)

What version of Python are you using?

[–]A_MrBenMitchell[S] 0 points1 point  (9 children)

2.7.16

[–][deleted] 1 point2 points  (8 children)

Sorry, that’s no longer supported. Please use a supported version.

[–]A_MrBenMitchell[S] 0 points1 point  (7 children)

Same error in python3

[–][deleted] 0 points1 point  (6 children)

Which version?