






"""simple docstring"""





def   a    (     __UpperCAmelCase      :    list[int]      ,   __UpperCAmelCase      :    int  )    ->							bool:
						__magic_name__:	Optional[int]							=       len(__UpperCAmelCase  )
						__magic_name__:	str							=       [[False] * (required_sum + 1) for _ in range(arr_len + 1  )]

						# for each arr value, a sum of zero(0) can be formed by not taking any element
						# hence True/1
						for i in range(arr_len + 1  ):
												__magic_name__:	List[str]							=       True

						# sum is not zero and set is empty then false
						for i in range(1      ,   required_sum + 1  ):
												__magic_name__:	List[Any]							=       False

						for i in range(1      ,   arr_len + 1  ):
												for j in range(1      ,   required_sum + 1  ):
																		if arr[i - 1] > j:
																								__magic_name__:	Optional[int]							=       subset[i - 1][j]
																		if arr[i - 1] <= j:
																								__magic_name__:	Dict							=       subset[i - 1][j] or subset[i - 1][j - arr[i - 1]]

						return subset[arr_len][required_sum]


if __name__ == "__main__":
							import doctest

							doctest.testmod()











"""simple docstring"""





def   a    (     __UpperCAmelCase      :    list[int]  )    ->							float:
						if not nums:  # Makes sure that the list is not empty
												raise ValueError("""List is empty"""  )

						__magic_name__:	Dict							=       sum(__UpperCAmelCase  ) / len(__UpperCAmelCase  )  # Calculate the average
						return sum(abs(x - average  ) for x in nums  ) / len(__UpperCAmelCase  )


if __name__ == "__main__":
							import doctest

							doctest.testmod()



