Posts by Victor Eduardo • 3 points
3 posts
-
-5
votes1
answer72
viewsQ: How to add values from within a Python list?
I made a code that stores data in a dictionary, and the dictionary is stored in a list, but when I try to add and divide the values, the first average is the one that ends up being valid for all…
pythonasked Victor Eduardo 3 -
1
votes2
answers456
viewsA: Print data from a list that is inside a dictionary - Python
Analyzing the code, I reached another way, but I still can’t print on the screen the way you ask in the statement: boletim = {'nome':[], 'n1':[], 'n2':[], 'n3':[], 'n4':[]} num = int(input('Qual o…
-
0
votes2
answers456
viewsQ: Print data from a list that is inside a dictionary - Python
Consider the following data set: Name + (N1, N2, N3, N4). Name represents a student’s name and should be used as a key. N1, N2, N3, N4 represent that student’s test scores. Use a dictionary…