

from __future__ import annotations





def 				__a							(       __A			,							__A						):
    SCREAMING_SNAKE_CASE__         =    {}
    for index, val in enumerate(__A						):
        SCREAMING_SNAKE_CASE__         =    target - val
        if compl in chk_map:
            return [chk_map[compl], index]
        SCREAMING_SNAKE_CASE__         =    index
    return []


if __name__ == "__main__":
  import doctest

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







def        a( A			:       int					,	A			:       int					,	A			:       int			)						->			float:
					"""simple docstring"""





					if common_ratio == 1:
										# Formula for sum if common ratio is 1
										return num_of_terms * first_term

					# Formula for finding sum of n terms of a GeometricProgression
					return (first_term / (1 - common_ratio)) * (1 - common_ratio**num_of_terms)
