From 88124f1294160cf936adda70ee93d4748978f9b8 Mon Sep 17 00:00:00 2001 From: TiagoRG <35657250+TiagoRG@users.noreply.github.com> Date: Tue, 21 Feb 2023 23:45:07 +0000 Subject: [PATCH] Quick fix cuz me be dumb :skull: --- 1ano/1semestre/fp/aula01/ex07.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/1ano/1semestre/fp/aula01/ex07.py b/1ano/1semestre/fp/aula01/ex07.py index b5afffb..f9aa729 100755 --- a/1ano/1semestre/fp/aula01/ex07.py +++ b/1ano/1semestre/fp/aula01/ex07.py @@ -1,8 +1,11 @@ -viagensDia = 2 * (1 + 2 + 3) +A = 3 +M = 2 + +viagensDia = 2 * M * sum(i for i in range(1, A+1)) viagensAno = viagensDia * 365 mAno = viagensAno * 3 -kmAno = mAno +kmAno = mAno / 1000 secsAno = mAno hAno = secsAno / 3600