def digital_number(number):
	"""
	>>> digital_number('1')
	False
	>>> digital_number('29562')
	True
	>>> digital_number('77')
	False
	>>> digital_number('000')
	True
	
	The trick here is you need to understand what rotation is:
	https://en.wikipedia.org/wiki/Seven-segment_display_character_representations
	In short:
	0 -> 0
	2 -> 2
	5 -> 5
	6 -> 9
	8 -> 8
	9 -> 6
	Other numbers can't be rotated into another number
	"""
	rule = {'0':'0', '2':'2', '5':'5', '6':'9', '8':'8', '9':'6'}
	new_str = [rule.get(digit, "x") for digit in number ]
	return number == "".join(new_str[::-1])