I'm following a tutorial where I need to write a dictionary:
from classes.game import Person, bcolors
magic = [{"name: Fire", "cost": 10, "dmg": 60},
{"name: Thunder", "cost": 10, "dmg": 60},
{"name: Blizzard", "cost": 10, "dmg": 60}]
player = Person(460, 65, 60, 34, magic)
enemy = Person(1200, 65, 45, 25, magic)
in line 3 there is a syntax error:
magic = [{"name: Fire", "cost": 10, "dmg": 60},
^
SyntaxError: invalid syntax
Why does it point to the colon (:) after "cost"? Pycharm says it expects a comma, however that further causes issues.