id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

bryce.hulett@hotmail.com > clock_angle
prev  |  next  |  chance

Given an hour h (0–12) and a minute m (0–59), return the smaller angle in degrees between the hour hand and the minute hand on a clock.


clock_angle(3, 0) → 90.0
clock_angle(6, 0) → 180.0
clock_angle(12, 30) → 165.0

...Save, Compile, Run (ctrl-enter)

def clock_angle(h, m):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 200 Post-solution available

Copyright Nick Parlante 2017 - privacy