uaveiro-leci/1ano/fp/aula01/ex07.py

11 lines
220 B
Python
Raw Normal View History

2022-10-20 20:16:01 +00:00
viagensDia = 2 * (1 + 2 + 3)
viagensAno = viagensDia * 365
2022-10-11 19:27:51 +00:00
2022-10-20 20:16:01 +00:00
mAno = viagensAno * 3
kmAno = mAno
2022-10-11 19:27:51 +00:00
2022-10-20 20:16:01 +00:00
secsAno = mAno
hAno = secsAno / 3600
2022-10-11 19:27:51 +00:00
2022-10-20 20:16:01 +00:00
print(f'O elevador anda {kmAno} kilometros por ano, durante {hAno} horas.')