"""simple docstring"""






def 						SCREAMING_SNAKE_CASE					(  __UpperCAmelCase       )							->   List[str]:
				SCREAMING_SNAKE_CASE__		  =				len(__UpperCAmelCase       )
				for i in range(length - 1       ):
								SCREAMING_SNAKE_CASE__		  =				i
								for k in range(i + 1  ,					__UpperCAmelCase       ):
												if collection[k] < collection[least]:
																SCREAMING_SNAKE_CASE__		  =				k
								if least != i:
												SCREAMING_SNAKE_CASE__  ,       SCREAMING_SNAKE_CASE__		  =				(collection[i], collection[least])
				return collection


if __name__ == "__main__":
						_A   					=    input('Enter numbers separated by a comma:\n').strip()
						_A   					=    [int(item) for item in user_input.split(',')]
						print(selection_sort(unsorted))





"""simple docstring"""






import math




def 						SCREAMING_SNAKE_CASE					(  __UpperCAmelCase  ,					__UpperCAmelCase       )							->   float:

				if initial_intensity < 0:
								raise ValueError("The value of intensity cannot be negative"       )
								# handling of negative values of initial intensity
				if angle < 0 or angle > 360:
								raise ValueError("In Malus Law, the angle is in the range 0-360 degrees"       )
								# handling of values out of allowed range
				return initial_intensity * (math.cos(math.radians(__UpperCAmelCase       )       ) ** 2)


if __name__ == "__main__":
						import doctest

						doctest.testmod(name='malus_law')




