




from __future__ import annotations

import random

class        _lowerCamelCase  :

      """simple docstring"""

      lowerCAmelCase__	:       Any			=    6







      def __init__(   self    :       Tuple ):
          __UpperCamelCase     						=  list(range(1       ,				Dice.NUM_SIDES + 1 ) )







      def 					snake_case		(   self    :       Tuple ):
          return random.choice(self.sides )







def     __SCREAMING_SNAKE_CASE      (     lowercase_    ,   lowercase_ = 2					)				->		list[float]:

    """simple docstring"""


    __UpperCamelCase     						=  [Dice() for i in range(lowercase_					)]
    __UpperCamelCase     						=  [0] * (len(lowercase_					) * Dice.NUM_SIDES + 1)
    for _ in range(lowercase_					):
        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()












def     __SCREAMING_SNAKE_CASE      (     lowercase_					)				->		bool:

    """simple docstring"""


    if not isinstance(lowercase_    ,   lowercase_					):
        __UpperCamelCase     						=  F"Input value of [number={number}] must be an integer"
        raise TypeError(lowercase_					)
    if number < 0 or number % 2 == 1:
        return False
    __UpperCamelCase     						=  int(number**0.5					)
    return number == number_sqrt * (number_sqrt + 1)


if __name__ == "__main__":
 import doctest

 doctest.testmod()






