


def       _a			(				SCREAMING_SNAKE_CASE					):


		"""simple docstring"""




		if length <= 0 or not isinstance(SCREAMING_SNAKE_CASE						,    SCREAMING_SNAKE_CASE					):
				raise ValueError('''Length must be a positive integer.'''					)
		return [n * (2 * n - 1) for n in range(SCREAMING_SNAKE_CASE					)]


if __name__ == "__main__":
			print(hexagonal_numbers(length=5))
			print(hexagonal_numbers(length=10))






def       _a			(				SCREAMING_SNAKE_CASE						,    SCREAMING_SNAKE_CASE					):


		"""simple docstring"""




		lowercase__						=				len(SCREAMING_SNAKE_CASE					)
		lowercase__						=				[]
		for i in range(len(SCREAMING_SNAKE_CASE					) - pat_len + 1					):
				lowercase__						=				True
				for j in range(SCREAMING_SNAKE_CASE					):
						if s[i + j] != pattern[j]:
								lowercase__						=				False
								break
				if match_found:
						position.append(SCREAMING_SNAKE_CASE					)
		return position


if __name__ == "__main__":
			assert naive_pattern_search('ABCDEFG', 'DE') == [3]
			print(naive_pattern_search('ABAAABCDBBABCDDEBCABC', 'ABC'))


