

def   __UpperCAmelCase					(      __a :     list[int]      )     ->	str:

					"""simple docstring"""

					_a      :       str   =						[]
					if len(lowercase__      ) == 1:
										return [nums.copy()]
					for _ in range(len(lowercase__      )      ):
										_a      :       List[Any]   =						nums.pop(0      )
										_a      :       Optional[int]   =						permute(lowercase__      )
										for perm in permutations:
															perm.append(lowercase__      )
										result.extend(lowercase__      )
										nums.append(lowercase__      )
					return result



def   __UpperCAmelCase					(      __a :     Optional[Any]      )     ->	Any:

					"""simple docstring"""

					def backtrack(__a :     str      ):
										if start == len(lowercase__      ) - 1:
															output.append(nums[:]      )
										else:
															for i in range(lowercase__						,len(lowercase__      )      ):
																				_a ,   _a      :       Dict   =						nums[i], nums[start]
																				backtrack(start + 1      )
																				_a ,   _a      :       List[str]   =						nums[i], nums[start]  # backtrack

					_a      :       Optional[Any]   =						[]
					backtrack(0      )
					return output


if __name__ == "__main__":
			import doctest

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






'''simple docstring'''

# Function to print upper half of diamond (pyramid)

def 					__UpperCamelCase				(						lowercase__    :	Optional[Any]			):






     '''simple docstring'''





     for i in range(0,       lowercase__			):
          for _ in range(0,       n - i - 1			):  # printing spaces
               print(' ',       end=''			)
          for _ in range(0,       i + 1			):  # printing stars
               print('* ',       end=''			)
          print()

def 					__UpperCamelCase				(						lowercase__    :	Optional[Any]			):






     '''simple docstring'''





     for i in range(lowercase__,       0,       -1			):
          for _ in range(lowercase__,       0,       -1			):  # printing stars
               print('* ',       end=''			)
          print()
          for _ in range(n - i + 1,       0,       -1			):  # printing spaces
               print(' ',       end=''			)

def 					__UpperCamelCase				(						lowercase__    :	Any			):






     '''simple docstring'''





     if n <= 0:
          print('       ...       ....        nothing printing :('			)
          return
     floyd(lowercase__			)  # upper half
     reverse_floyd(lowercase__			)  # lower half


if __name__ == "__main__":
       print(r'''| /\ | |- |  |-  |--| |\  /| |-''')
       print(r'''|/  \| |- |_ |_  |__| | \/ | |_''')
       UpperCAmelCase					 =	1
       while K:
              UpperCAmelCase					 =	int(input('''enter the number and , and see the magic : '''))
              print()
              pretty_print(user_number)
              UpperCAmelCase					 =	int(input('''press 0 to exit... and 1 to continue...'''))

       print('''Good Bye...''')


