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

Lucy semana 5 #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Lucy semana 5 #2

wants to merge 1 commit into from

Conversation

souzalucy
Copy link

No description provided.

Copy link
Collaborator

Choose a reason for hiding this comment

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

não precisa alterar esse arquivo

ano = int(input("Qual ano da receita? "))
valor_total = 0
lucro_maior = 0
despesa_menor = float('inf') 0
Copy link
Collaborator

Choose a reason for hiding this comment

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

image
sempre verifique o que fez e rode uma vez antes de enviar.

Comment on lines +80 to +92
for elemento in dataset:
if ano == elemento.get("ano_receita"):
receita = elemento.get("faturamento") - elemento.get("despesas")
valor_total += receita

if elemento.get("faturamento") > lucro_maior:
lucro_maior = elemento.get("faturamento")
mes_maior_lucro = elemento.get("mes_receita")

if elemento.get("despesas") < despesa_menor:
despesa_menor = elemento.get("despesas")
mes_menor_despesa = elemento.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.

image
Como o mës 1 foi o mais lucrativo e o menos lucrativo ao mesmo tempo?

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