Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

anapaulads
Copy link

No description provided.

Comment on lines +103 to +104
faturamento = float(input("Digite o luco do mês correspondente: "))
despesas = float(input("Digite os gastos do mês correspondete: "))
Copy link
Collaborator

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

Comment on lines +134 to +136
if el.get("despesas") > maior_despesa:
maior_despesa = el.get("despesas")
mes_despesa = el.get("mes_receita")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

Comment on lines +149 to +159
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
Copy link
Collaborator

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?

Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants