


'''simple docstring'''

from __future__ import annotations

import random







class        UpperCAmelCase       :
 _lowerCamelCase       :    Dict			    =    6

 def __init__(       self       :		Union[str, Any]    ):





    """simple docstring"""



    UpperCamelCase__         =  list(range(1,    Dice.NUM_SIDES + 1    )    )

 def 						lowercase_  (       self       :		Optional[int]    ):





    """simple docstring"""



    return random.choice(self.sides    )







def 				SCREAMING_SNAKE_CASE__(						_UpperCamelCase					: Optional[int]			,						_UpperCamelCase					: Any = 2      )						->    list[float]:





   '''simple docstring'''







   UpperCamelCase__         =  [Dice() for i in range(_UpperCAmelCase      )]
   UpperCamelCase__         =  [0] * (len(_UpperCAmelCase      ) * Dice.NUM_SIDES + 1)
   for _ in range(_UpperCAmelCase      ):
      count_of_sum[sum(dice.roll() for dice in dices      )] += 1
   UpperCamelCase__         =  [round((count * 1_00) / num_throws			,						2      ) for count in count_of_sum]
   return probability[num_dice:]  # remove probability of sums that never appear


if __name__ == "__main__":
       import doctest

       doctest.testmod()






"""simple docstring"""


from __future__ import annotations





def 							a__	(     _UpperCAmelCase		,   _UpperCAmelCase		,   _UpperCAmelCase		,   )			->     list[float | int]:

 '''simple docstring'''






 if not all((nth_term, start_term_a, common_ratio_r)		):
  return []
 snake_case__										= []
 snake_case__										= 1
 snake_case__										= common_ratio_r
 for _ in range(int(_UpperCAmelCase		)		):
  if not series:
   series.append(_UpperCAmelCase		)
  else:
   power += 1
   series.append(float(start_term_a * multiple		)		)
   snake_case__										= pow(float(_UpperCAmelCase		)		,   _UpperCAmelCase		)
 return series


if __name__ == "__main__":
   import doctest

   doctest.testmod()

   a__    :   int    						= float(input("""Enter the last number (n term) of the Geometric Series"""))
   a__    :   str    						= float(input("""Enter the starting term (a) of the Geometric Series"""))
   a__    :   str    						= float(
       input("""Enter the common ratio between two terms (r) of the Geometric Series""")
   )
   print("""Formula of Geometric Series => a + ar + ar^2 ... +ar^n""")
   print(geometric_series(nth_term, start_term_a, common_ratio_r))

