Posts by Rodrigo Lins • 61 points
1 post
-
6
votes4
answers2878
viewsA: Two "Return" in a function
If I were you I would return a list with the two values, for example: def soma(a, b): x = a + b y = 'qualquer coisa' return [x, y] Or else, Python allows you to Return with a tuple of two values.…