def intoBinary(num):
	"""
	bin() function converts decimal to binary but does not return value in 8 
	bits. So we need to add the remaining zeros in order to make it 8 bits, for
	which the 'switcher' dictionary is created. For instance if bin() returns 
	3 bits data, remaining 5 zeros are concatenated.
	
	Input:
	'num' as integer.
	
	Returns:
	Corresponding binary value of 'num'
	"""
	val = bin(num).replace('0b', "") 
	switcher = {
		1:"0000000",
		2:"000000",
		3:"00000",
		4:"0000",
		5:"000",
		6:"00",
		7:"0",
		8:""
	}
	#returns either number of zeros as per length or the value itself
	if len(val) > 8:
		final_value = val
	else:
		final_value = switcher.get(len(val), val)+val
		print("Binary value of {}: ".format(num),final_value)
	return final_value