





def 				__lowerCAmelCase(       _SCREAMING_SNAKE_CASE				)							-> list[list[int]]:




    """simple docstring"""




    _A     =							[]
    if len(_SCREAMING_SNAKE_CASE				) == 1:
        return [nums.copy()]
    for _ in range(len(_SCREAMING_SNAKE_CASE				)				):
        _A     =							nums.pop(0				)
        _A     =							permute(_SCREAMING_SNAKE_CASE				)
        for perm in permutations:
            perm.append(_SCREAMING_SNAKE_CASE				)
        result.extend(_SCREAMING_SNAKE_CASE				)
        nums.append(_SCREAMING_SNAKE_CASE				)
    return result





def 				__lowerCAmelCase(       _SCREAMING_SNAKE_CASE				)							-> Optional[Any]:




    """simple docstring"""




    def backtrack(_SCREAMING_SNAKE_CASE				):
        if start == len(_SCREAMING_SNAKE_CASE				) - 1:
            output.append(nums[:]				)
        else:
            for i in range(_SCREAMING_SNAKE_CASE							,     len(_SCREAMING_SNAKE_CASE				)				):
                _A,			_A     =							nums[i], nums[start]
                backtrack(start + 1				)
                _A,			_A     =							nums[i], nums[start]  # backtrack

    _A     =							[]
    backtrack(0				)
    return output


if __name__ == "__main__":
 import doctest

 # use res to print the data in permute2 function
 __A							:			Optional[int]         =			permutea([1, 2, 3])
 print(res)
 doctest.testmod()













'''simple docstring'''







import cmath
import math


def       __UpperCamelCase					(      lowercase_       :  float   ,       lowercase_       :  float   ,       lowercase_       :  float   ,       lowercase_       :  float   ):
       """simple docstring"""




       a_						     =			math.radians(lowercase_   )
       a_						     =			math.radians(lowercase_   )

       # Convert voltage and current to rectangular form
       a_						     =			cmath.rect(lowercase_   ,       lowercase_   )
       a_						     =			cmath.rect(lowercase_   ,       lowercase_   )

       # Calculate apparent power
       return voltage_rect * current_rect


if __name__ == "__main__":
  import doctest

  doctest.testmod()




