


'''simple docstring'''

def _SCREAMING_SNAKE_CASE      (A       )       ->       int:






       """simple docstring"""







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


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






'''simple docstring'''




import os







def 		lowerCAmelCase_				(   ):




    '''simple docstring'''



    A       :   List[Any]					=						os.path.join(os.path.dirname(snake_case__						)		,				'''num.txt'''						)
    with open(snake_case__						) as file_hand:
        return str(sum(int(snake_case__						) for line in file_hand						)						)[:10]


if __name__ == "__main__":
      print(solution())




