[[3, 2, 7], [8, -2, 5], [-1, 4, 3], [2, 2, -9]]
Next, it saves in three different variables, ignoring the negative values, the sum of the elements separately. That is, the sum of the first element of each sublist, the sum of the second element of each sublist, and the sum of the third element of each sublist. Then create a dictionary with key / value matching from numbers 1 through 15, for example:
{1:"Um", 2:"Dois" … 15:"Quinze"}.
To finish, matching the result value to the dictionary key, displays the result individually in text form.
I started with this code. My first question is do for if else
cycle? How do I get it to add only the positives? What do I call the blocks? in the same way as in the lists 0,1,2,3?
lista=[[3,2,7], [8,-2,5], [-1,4,3], [2,2,-9]]
var1=""
var2=""
var3=""
for int in range(len(lista))
if (int in lista)
var1=