




from doctest import testmod
from math import sqrt







def 		lowercase__ (		__A:						int					):





					'''simple docstring'''






					__magic_name__				:						list[int]     				=				[]
					if num < 1:
										return facs
					facs.append(1					)
					if num == 1:
										return facs
					facs.append(__A					)
					for i in range(2				,int(sqrt(__A					)					) + 1					):
										if num % i == 0:  # If i is a factor of num
															facs.append(__A					)
															__magic_name__				:						Dict     				=				num // i  # num//i is the other factor of num
															if d != i:  # If d and i are distinct
																				facs.append(__A					)  # we have found another factor
					facs.sort()
					return facs


if __name__ == "__main__":
	testmod(name='''factors_of_a_number''', verbose=True)









def 		lowercase__ (		__A:						int					):





					'''simple docstring'''






					if not isinstance(__A				,__A					):
										__magic_name__				:						Dict     				=				F'''Input value of [number={number}] must be an integer'''
										raise TypeError(__A					)
					if number < 0 or number % 2 == 1:
										return False
					__magic_name__				:						Any     				=				int(number**0.5					)
					return number == number_sqrt * (number_sqrt + 1)


if __name__ == "__main__":
	import doctest

	doctest.testmod()



