




'''simple docstring'''
from __future__ import annotations





def 			lowerCamelCase(							SCREAMING_SNAKE_CASE_       ,SCREAMING_SNAKE_CASE_     )		->		list[str]:
			if nth_term == "":
						return [""]
			A_									= int(SCREAMING_SNAKE_CASE_     )
			A_									= int(SCREAMING_SNAKE_CASE_     )
			A_									= []
			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()

							_SCREAMING_SNAKE_CASE			=						int(input("Enter the last number (nth term) of the P-Series"))
							_SCREAMING_SNAKE_CASE			=						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'''
def 			lowerCamelCase(							SCREAMING_SNAKE_CASE_       ,SCREAMING_SNAKE_CASE_     )		->		tuple[float, float]:

			# Check if the input is valid
			if not len(SCREAMING_SNAKE_CASE_     ) == len(SCREAMING_SNAKE_CASE_     ) == 3:
						raise ValueError('Please enter a valid equation.'     )
			if equationa[0] == equationa[1] == equationa[0] == equationa[1] == 0:
						raise ValueError('Both a & b of two equations can\'t be zero.'     )

			# Extract the coefficients
			A_		, A_		, A_									= equationa
			A_		, A_		, A_									= equationa

			# Calculate the determinants of the matrices
			A_									= aa * ba - aa * ba
			A_									= ca * ba - ca * ba
			A_									= aa * ca - aa * ca

			# Check if the system of linear equations has a solution (using Cramer's rule)
			if determinant == 0:
						if determinant_x == determinant_y == 0:
									raise ValueError('Infinite solutions. (Consistent system)'     )
						else:
									raise ValueError('No solution. (Inconsistent system)'     )
			else:
						if determinant_x == determinant_y == 0:
									# Trivial solution (Inconsistent system)
									return (0.0, 0.0)
						else:
									A_									= determinant_x / determinant
									A_									= determinant_y / determinant
									# Non-Trivial Solution (Consistent system)
									return (x, y)




