"""simple docstring"""

from __future__ import annotations







def 							SCREAMING_SNAKE_CASE__      (		SCREAMING_SNAKE_CASE__ :  int | float | str				,    SCREAMING_SNAKE_CASE__ :  int | float | str			):



					"""simple docstring"""





					if nth_term == "":
										return [""]
					snake_case_					:		List[Any] 					=					int(SCREAMING_SNAKE_CASE__			)
					snake_case_					:		Optional[Any] 					=					int(SCREAMING_SNAKE_CASE__			)
					snake_case_					:		list[str] 					=					[]
					for temp in range(int(SCREAMING_SNAKE_CASE__			)			):
										series.append(f'1 / {pow(temp + 1				,    int(SCREAMING_SNAKE_CASE__			)			)}' if series else """1"""			)
					return series


if __name__ == "__main__":
			import doctest

			doctest.testmod()

			a_			   =					int(input('''Enter the last number (nth term) of the P-Series'''))
			a_			   =					int(input('''Enter the power for  P-Series'''))
			print('''Formula of P-Series => 1+1/2^p+1/3^p ..... 1/n^p''')
			print(p_series(nth_term, power))









"""simple docstring"""

from random import randint
from tempfile import TemporaryFile

import numpy as np







def 							SCREAMING_SNAKE_CASE__      (		SCREAMING_SNAKE_CASE__ :  List[Any]				,    SCREAMING_SNAKE_CASE__ :  Dict				,    SCREAMING_SNAKE_CASE__ :  Optional[int]			):



					"""simple docstring"""





					snake_case_					:		Union[str, Any] 					=					0
					if start < end:
										snake_case_					:		Union[str, Any] 					=					randint(SCREAMING_SNAKE_CASE__				,    SCREAMING_SNAKE_CASE__			)
										snake_case_					:		List[Any] 					=					a[end]
										snake_case_					:		Dict 					=					a[pivot]
										snake_case_					:		Any 					=					temp

										snake_case_					,			snake_case_					:		Dict 					=					_in_place_partition(SCREAMING_SNAKE_CASE__				,    SCREAMING_SNAKE_CASE__				,    SCREAMING_SNAKE_CASE__			)
										count += _in_place_quick_sort(SCREAMING_SNAKE_CASE__				,    SCREAMING_SNAKE_CASE__				,    p - 1			)
										count += _in_place_quick_sort(SCREAMING_SNAKE_CASE__				,    p + 1				,    SCREAMING_SNAKE_CASE__			)
					return count







def 							SCREAMING_SNAKE_CASE__      (		SCREAMING_SNAKE_CASE__ :  int				,    SCREAMING_SNAKE_CASE__ :  List[Any]				,    SCREAMING_SNAKE_CASE__ :  Dict			):



					"""simple docstring"""





					snake_case_					:		Tuple 					=					0
					snake_case_					:		List[Any] 					=					randint(SCREAMING_SNAKE_CASE__				,    SCREAMING_SNAKE_CASE__			)
					snake_case_					:		Dict 					=					a[end]
					snake_case_					:		List[Any] 					=					a[pivot]
					snake_case_					:		Optional[Any] 					=					temp
					snake_case_					:		List[str] 					=					start - 1
					for index in range(SCREAMING_SNAKE_CASE__				,    SCREAMING_SNAKE_CASE__			):
										count += 1
										if a[index] < a[end]:  # check if current val is less than pivot value
															snake_case_					:		Any 					=					new_pivot_index + 1
															snake_case_					:		Tuple 					=					a[new_pivot_index]
															snake_case_					:		Optional[int] 					=					a[index]
															snake_case_					:		Tuple 					=					temp

					snake_case_					:		Union[str, Any] 					=					a[new_pivot_index + 1]
					snake_case_					:		Union[str, Any] 					=					a[end]
					snake_case_					:		Union[str, Any] 					=					temp
					return new_pivot_index + 1, count


a_			   =					TemporaryFile()
a_			   =					100  # 1000 elements are to be sorted


a_   ,    a_			   =					0, 1  # mean and standard deviation
a_			   =					np.random.normal(mu, sigma, p)
np.save(outfile, X)
print('''The array is''')
print(X)


outfile.seek(0)  # using the same array
a_			   =					np.load(outfile)
a_			   =					len(M) - 1
a_			   =					_in_place_quick_sort(M, 0, r)

print(
    '''No of Comparisons for 100 elements selected from a standard normal distribution'''
    '''is :'''
)


print(z)




