Note : Issues Fixed with python 2.7.6 , Use any one you like :D , ( Thanks to 

Time , time , time . Your task is to write a function that will return the degrees on a analog clock from a digital time that is passed in as parameter . The digital time is type string and will be in the format 00:00 . You also need to return the degrees on the analog clock in type string and format 360:360 . Remember to round of the degrees . Remeber the basic time rules and format like 24:00 = 00:00 and 12:60 = 13:00 . Create your own validation that should return "Check your time !" in any case the time is incorrect or the format is wrong , remember this includes passing in negatives times like "-01:-10".
``` 
A few examples :
clock_degree("00:00") will return : "360:360"
clock_degree("01:01") will return : "30:6"
clock_degree("00:01") will return : "360:6"
clock_degree("01:00") will return : "30:360"
clock_degree("01:30") will return : "30:180"
clock_degree("24:00") will return : "Check your time !"
clock_degree("13:60") will return : "Check your time !"
clock_degree("20:34") will return : "240:204"
```
Remember that discrete hour hand movement is required - snapping to each hour position and also coterminal angles are not allowed. Goodluck and Enjoy !

Difficulty: EASY
Starter code: def clock_degree(s) :
	

Solutions:
def clock_degree(clock_time):
	(hour, minutes) = (int(a) for a in clock_time.split(':'))
	if not (24 > hour >= 0 and 60 > minutes >= 0):
		return 'Check your time !'
	return '{}:{}'.format(hour % 12 * 30 or 360, minutes * 6 or 360)


def clock_degree(stg):
	try:
		(h, m) = (int(n) for n in stg.split(':'))
		if not (0 <= h < 24 and 0 <= m < 60):
			raise ValueError
	except ValueError:
		return 'Check your time !'
	return f'{(h % 12 or 12) * 30}:{(m or 60) * 6}'


def clock_degree(s):
	(hours, minutes) = map(lambda str: int(str), s.split(':'))
	if hours < 0 or minutes < 0 or hours > 23 or (minutes > 59):
		return 'Check your time !'
	return str((hours % 12 or 12) * 30) + ':' + str((minutes or 60) * 6)


def clock_degree(s):
	(hour, minute) = map(int, s.split(':'))
	if not 0 <= hour < 24 or minute < 0:
		return 'Check your time !'
	hour %= 12
	minute %= 60
	return '{}:{}'.format(hour * 30 or 360, minute * 6 or 360)


def clock_degree(s):
	(h, m) = map(int, s.split(':'))
	if not (0 <= h < 24 and 0 <= m < 60):
		return 'Check your time !'
	return '{}:{}'.format(h % 12 * 30 or '360', m * 6 or '360')


import re

def clock_degree(s):
	if not re.match('([0-1][0-9]|[2][0-3]):[0-5][0-9]', s):
		return 'Check your time !'
	(hr, sec) = tuple(map(int, s.split(':')))
	hr = str(hr % 12 * 30 if hr % 12 > 0 else 360)
	sec = str(sec * 6 if sec > 0 else 360)
	return hr + ':' + sec


clock_degree = lambda s: (lambda h, m: '%s:%s' % (30 * (h % 12) or 360, 6 * m or 360) if 0 <= h <= 23 and 0 <= m <= 59 else 'Check your time !')(*[int(a) for a in s.split(':')])


def clock_degree(s):
	(hh, mm) = list(map(int, s.split(':')))
	if not (0 <= hh < 24 and 0 <= mm < 60):
		return 'Check your time !'
	hh %= 12
	fix_zero = lambda theta: theta if theta != 0 else 360
	return f'{fix_zero(hh * 30)}:{fix_zero(mm * 6)}'


def clock_degree(s):
	(hours, minutes) = map(int, s.split(':'))
	return f'{hours % 12 * 30 or 360}:{minutes * 6 or 360}' if 0 <= hours < 24 and 0 <= minutes < 60 else 'Check your time !'