Posts by Fabrício • 11 points
1 post
-
1
votes1
answer682
viewsQ: Problem with dictionary - Attributeerror: 'int' Object has no attribute 'get'
I’m starting to learn the basics in Python, and one of the examples about dictionary lists asks for something like this: inventory = {'a' : 1 , 'b' : 6 , 'c' : 42 , 'd' : 1 , 'e' : 12} def…