Skip to content

Instantly share code, notes, and snippets.

@girol
Created March 17, 2022 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save girol/e6d32a877b0880564a404792ce2f4581 to your computer and use it in GitHub Desktop.
Save girol/e6d32a877b0880564a404792ce2f4581 to your computer and use it in GitHub Desktop.
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
media_2t = total_2t/5
print("Time 1")
print(f"A média de gols no primeiro tempo: {media_1t}")
print(f"A média de gols no segundo tempo: {media_2t}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment