What My Error | Sololearn: Learn to code for FREE!


What My Error

name = {'Name': 'Pedro', 'Age': ' 30'} name['Name'] name['Age']

5/30/2019 10:11:46 PM

zDev GameDev

6 Answers

New Answer


No error, but if you want to print the values in the dictionary to the console, you have to use print(): print( name['Name'] ) print( name['Age'] )


You don't have to use single quote in object variables name like 'Name' and 'Age' this is wrong.


Joakim Nyland Thanks! :D


David I was wrong to just show the dictionary '-'


Just print them... ;)


It all wrong