Jsmith1103
New Coder
I am attempting to create a basic nested dictionary for a beginner lesson in my Computer Science class however, I keep getting this syntax error when using this code. Any help is appreciated.
IDs = ['Williams','Smith','Embrack']
BasicInfo = {'Williams': {'firstname': 'Steve', 'age': '21', 'highscore': '1562'},
{'Smith': {'firstname': 'Josh', 'age': '18', 'highscore': '2690'},
{'Embrack': {'firstname': 'Chris', 'age': '34', 'highscore': '1248'}}
Players_N = dict(zip(IDs, BasicInfo))
The syntax error is after "Highscore" on the end of the bottom line of 'BasicInfo' Thanks guys
IDs = ['Williams','Smith','Embrack']
BasicInfo = {'Williams': {'firstname': 'Steve', 'age': '21', 'highscore': '1562'},
{'Smith': {'firstname': 'Josh', 'age': '18', 'highscore': '2690'},
{'Embrack': {'firstname': 'Chris', 'age': '34', 'highscore': '1248'}}
Players_N = dict(zip(IDs, BasicInfo))
The syntax error is after "Highscore" on the end of the bottom line of 'BasicInfo' Thanks guys