




def 							__SCREAMING_SNAKE_CASE  (      snake_case_						):

						'''simple docstring'''


						return -num if num < 0 else num


def 							__SCREAMING_SNAKE_CASE  (      snake_case_						):

						'''simple docstring'''


						if len(snake_case_						) == 0:
												raise ValueError("abs_min() arg is an empty sequence"						)
						_UpperCAmelCase													=					x[0]
						for i in x:
												if abs_val(snake_case_						) < abs_val(snake_case_						):
																		_UpperCAmelCase													=					i
						return j


def 							__SCREAMING_SNAKE_CASE  (      snake_case_						):

						'''simple docstring'''


						if len(snake_case_						) == 0:
												raise ValueError("abs_max() arg is an empty sequence"						)
						_UpperCAmelCase													=					x[0]
						for i in x:
												if abs(snake_case_						) > abs(snake_case_						):
																		_UpperCAmelCase													=					i
						return j


def 							__SCREAMING_SNAKE_CASE  (      snake_case_						):

						'''simple docstring'''


						if len(snake_case_						) == 0:
												raise ValueError("abs_max_sort() arg is an empty sequence"						)
						return sorted(snake_case_     ,   key=snake_case_						)[-1]


def 							__SCREAMING_SNAKE_CASE  (      ):

						'''simple docstring'''


						assert abs_val(0						) == 0
						assert abs_val(34						) == 34
						assert abs_val(-1000_0000_0000						) == 1000_0000_0000

						_UpperCAmelCase													=					[-3, -1, 2, -11]
						assert abs_max(snake_case_						) == -11
						assert abs_max_sort(snake_case_						) == -11
						assert abs_min(snake_case_						) == -1


if __name__ == "__main__":
				import doctest

				doctest.testmod()

				test_abs_val()
				print(abs_val(-34))  # --> 34










from __future__ import annotations


def 							__SCREAMING_SNAKE_CASE  (      snake_case_						):

						'''simple docstring'''


						if len(snake_case_						) == 0:
												raise ValueError("find_max() arg is an empty sequence"						)
						_UpperCAmelCase													=					nums[0]
						for x in nums:
												if x > max_num:
																		_UpperCAmelCase													=					x
						return max_num


if __name__ == "__main__":
				import doctest

				doctest.testmod(verbose=True)




