2023-02-21 23:45:07 +00:00
|
|
|
A = 3
|
|
|
|
M = 2
|
|
|
|
|
2023-05-16 20:00:37 +00:00
|
|
|
viagensDia = 2 * M * sum(i for i in range(1, A + 1))
|
2023-01-30 17:50:10 +00:00
|
|
|
viagensAno = viagensDia * 365
|
|
|
|
|
|
|
|
mAno = viagensAno * 3
|
2023-02-21 23:45:07 +00:00
|
|
|
kmAno = mAno / 1000
|
2023-01-30 17:50:10 +00:00
|
|
|
|
|
|
|
secsAno = mAno
|
|
|
|
hAno = secsAno / 3600
|
|
|
|
|
|
|
|
print(f'O elevador anda {kmAno} kilometros por ano, durante {hAno} horas.')
|