def get_stars(digits):
	"""changes digits to vertical picture of clock with stars and dots"""
	digits_arr = []
	for j in range(len(digits[0]) - 1, -1, -1):
		digits2 = []
		for i in range(len(digits)):
				digits2.append(digits[i][j])
		digits_arr.append(''.join(digits2))
	digits_arr.reverse()
	stars = "\n".join(digits_arr)
	stars = stars.replace('0', '.')
	stars = stars.replace('1', '*')
	return stars
changes digits to vertical picture of clock with stars and dots
recipes/Python/577430_Binary_BCD_clock_using_curses/recipe-577430.py