Loading...

The Clock Examiner

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
junior, mid

Problem

Given an hour and minute value, compute the absolute angle in degrees between the hour and minute hands of an analog clock. The hour hand moves continuously (not just on whole hours). Return a float between 0 and 180.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.