def get_factors(x):
	""" This function takes a number and returns its factors"""
	listf = []
	#print("The factors of",x,"are:")
	for i in range(1, x + 1):
		if x % i == 0:
			#print(i)
			listf.append(i)
	return listf