This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jogos = range(1,6) | |
total_1t = total_2t = 0 | |
for j in jogos: | |
gols_1t = int(input(f"Quantos gols no jogo {j} no primeiro tempo? >>> ")) | |
gols_2t = int(input(f"Quantos gols no jogo {j} no segundo tempo? >>> ")) | |
total_1t += gols_1t | |
total_2t += gols_2t | |
media_1t = total_1t/5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from decimal import * | |
PLACES = Decimal(10) ** -6 | |
option1 = Decimal("1000.1111") | |
option2 = Decimal("300.2222") | |
option3 = Decimal("500.3333") | |
total = option1 - option2 - option3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import wraps | |
from marshmallow import ValidationError | |
from mensageria.backends.exceptions import BackendException | |
from mensageria.core.exceptions import ( | |
BackendNotFoundException, | |
ConfigurationNotFoundException, | |
) | |
OlderNewer