Integer20. N seconds have passed since the beginning of the day (N is an integer). Find the number of complete hours that have elapsed since the beginning of the day.

Solution in Python 3:

import random

N = random.randrange(0,86400)
print("Number of seconds: ", N)
h = int(N/60/60)
print("Complete hours: ", h)