Python Code: Simulating a Clock

Prompt

Result