-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Atividade S05 - Ana Paula #3
base: main
Are you sure you want to change the base?
Conversation
faturamento = float(input("Digite o luco do mês correspondente: ")) | ||
despesas = float(input("Digite os gastos do mês correspondete: ")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cuidado para não usar um tipo diferente do que está no dataset
if el.get("despesas") > maior_despesa: | ||
maior_despesa = el.get("despesas") | ||
mes_despesa = el.get("mes_receita") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥇
for el in dataset: | ||
ano = el.get("ano_receita") | ||
receita = el.get("faturamento") - el.get("despesas") | ||
|
||
if receita > melhor_receita: | ||
melhor_receita = receita | ||
melhor_ano = ano | ||
|
||
if receita < pior_receita: | ||
pior_receita = receita | ||
pior_ano = ano |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
conferiu se os dados estão certos?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tinha conferido, mas rodei agr novamente e não está dando o mesmo resultado D:
Vou verificar oq aconteceu e ajeitar o código.
No description provided.