Skip to content

Commit 7f7cd4e

Browse files
committed
corrigido: divisao por 0 retorna string indefinido
1 parent 41ee7dc commit 7f7cd4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servidor-operacoes1/operacoes1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def divisao(self, x, y):
4747
try:
4848
return str(float(x) / float(y))
4949
except ZeroDivisionError:
50-
return 'INFINITO'
50+
return 'INDEFINIDO'
5151
except:
5252
return 'ERRO'
5353

0 commit comments

Comments
 (0)