



from __future__ import annotations

import random





class 							UpperCAmelCase   :




	'''simple docstring'''





	snake_case_      					=  6






	def __init__( self      :				List[Any]				):
					__A         =				list(range(1							,Dice.NUM_SIDES + 1				)				)







	def        UpperCamelCase_						( self      :				Optional[Any]				):
					return random.choice(self.sides				)





def 		UpperCAmelCase    (			a_	,     a_ = 2		)	->			list[float]:







				"""simple docstring"""



				__A         =				[Dice() for i in range(a_		)]
				__A         =				[0] * (len(a_		) * Dice.NUM_SIDES + 1)
				for _ in range(a_		):
								count_of_sum[sum(dice.roll() for dice in dices		)] += 1
				__A         =				[round((count * 1_0_0) / 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 		UpperCAmelCase    (			a_		)	->			int:







				"""simple docstring"""



				__A         =				str(a_		).strip()
				if not oct_string:
								raise ValueError("Empty string was passed to the function"		)
				__A         =				oct_string[0] == "-"
				if is_negative:
								__A         =				oct_string[1:]
				if not oct_string.isdigit() or not all(0 <= int(a_		) <= 7 for char in oct_string		):
								raise ValueError("Non-octal value was passed to the function"		)
				__A         =				0
				for char in oct_string:
								__A         =				8 * decimal_number + int(a_		)
				if is_negative:
								__A         =				-decimal_number
				return decimal_number


if __name__ == "__main__":
					from doctest import testmod

					testmod()
