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

+10

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

+27

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'] )

+13

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

+5

Joakim Nyland Thanks! :D

+2

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

0

Just print them... ;)

-10

It all wrong