

def     lowerCAmelCase__							(		SCREAMING_SNAKE_CASE_:							int		,				SCREAMING_SNAKE_CASE_:							Optional[int]		,				SCREAMING_SNAKE_CASE_:							Union[str, Any]					)	->					float:




				'''simple docstring'''





				A__						=	(num_of_terms / 2) * (2 * first_term + (num_of_terms - 1) * common_diff)
				# formula for sum of series
				return total



def     lowerCAmelCase__							(		)	->					int:




				'''simple docstring'''





				print(sum_of_series(1		,				1		,				1_0					)					)


if __name__ == "__main__":
	import doctest

	doctest.testmod()





from __future__ import annotations




def    snake_case_     (  snake_case			,							snake_case     )  ->				list[int]:
       lowercase__:   List[str]  			=   0
       lowercase__:   Dict  			=   len(snake_case     ) - 1

       while i < j:
              if nums[i] + nums[j] == target:
                     return [i, j]
              elif nums[i] + nums[j] < target:
                     lowercase__:   Dict  			=   i + 1
              else:
                     lowercase__:   List[Any]  			=   j - 1

       return []


if __name__ == "__main__":
 import doctest

 doctest.testmod()
 print(F'''{two_pointer([2, 7, 11, 15], 9) = }''')


