Posts by Nuno Oliveira • 25 points
3 posts
-
0
votes2
answers8348
viewsQ: Sum of elements in lists
[[3, 2, 7], [8, -2, 5], [-1, 4, 3], [2, 2, -9]] Then it stores in three distinct variables, ignoring the negative values, the sum of the elements separately. That is, the sum of the first element of…
-
1
votes2
answers153
viewsQ: Print the minimum number on the list?
I have this code and I can’t get the number -1 to be shown. It gives an error: not supported between instances of 'str' and 'int'. From what I’ve seen on other forums it has to do with comparing…
python-3.xasked Nuno Oliveira 25 -
0
votes2
answers136
viewsQ: Error whenever using max python function 3.6.1
am starting me in python and in this code I send below whenever the syntax error execution invalidates. Can you give me a help? lst=[6,10, 2, 1, 9, 35] lstord= sorted(lst) lstord.reverse() print max…