Posts by Eduardo Oliveira • 48 points
2 posts
-
3
votes1
answer2187
viewsQ: The sum of the difference between 2 Python lists
I need a function compara_listas(lista1, lista2) which receives two random lists and calculates the sum of the difference between their elements. But if any element of the lista2 is greater than the…
pythonasked Eduardo Oliveira 48 -
0
votes4
answers6292
viewsA: Recover matrix dimensions in Python
The code would look like this: def dimensoes(matriz): tam_matriz = (len(matriz), len(matriz[0])) print('{}X{}'.format(tam_matriz[0], tam_matriz[1])) If the question asks to print, you have to use…
pythonanswered Eduardo Oliveira 48