Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import ceil
- laps = []
- N = int(input())
- for i in range(1, N):
- times = int(input())
- laps.append(times)
- print(f"Count of laps: {len(laps)}")
- print(f"List of laps: {laps}")
- print(f"Fastest lap: {min(laps)}")
- print(f"Slowest lap: {max(laps)}")
- print(f"Total time of laps: {sum(laps)}")
- print(f"Average laps time: {ceil(laps / sum(laps))}")
- laps = []
- while True:
- command = input()
- if command == "stop":
- break
- laps.append(int(command))
- print(f"Count of Monza lap: {len(laps)}")
- print(f"List of laps: {laps}")
- print(f"Fastest lap: {min(laps)}")
- print(f"SLowest lap: {max(laps)}")
- print(f"Total laps time: {sum(laps)/60}:{sum(laps)}")
- print(f"Average lap time: {((len(laps) / sum(laps))/60):02d}:{(len(laps) % 60):02d}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement