Posts by Filipe Certal • 44 points
2 posts
- 
		1 votes4 answers1133 viewsA: Add negative elements from a listMay I suggest: lista = [12, -2, 4, 8, 29, 45, 78, 36, -17, 2, 12, 8, 3, 3, -52] print (sum(filter(lambda x: x < 0, lista))) 
- 
		1 votes1 answer769 viewsA: Exception in thread "main" java.util.Nosuchelementexception: No line foundimport java.util.Scanner; public class Exercicio5 { public static void main(String[] args) { String [] produto = new String[10]; Scanner p = new Scanner(System.in); for (int i=0; i<10; i++) {… javaanswered Filipe Certal 44