



"""simple docstring"""
from __future__ import annotations



def        lowerCAmelCase_(   lowercase_     :							List[str]						,   lowercase_     :							List[Any]							)	->       list[str]:







				if nth_term == "":
								return [""]
				_lowerCamelCase        =				int(__UpperCAmelCase							)
				_lowerCamelCase        =				int(__UpperCAmelCase							)
				_lowerCamelCase        =				[]
				for temp in range(int(__UpperCAmelCase							)							):
								series.append(F"""1 / {pow(temp + 1						,   int(__UpperCAmelCase							)							)}""" if series else '''1'''							)
				return series


if __name__ == "__main__":
			import doctest

			doctest.testmod()

			__SCREAMING_SNAKE_CASE  :						int    							=      int(input('''Enter the last number (nth term) of the P-Series'''))
			__SCREAMING_SNAKE_CASE  :						Tuple    							=      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 __future__ import annotations

from math import pow, sqrt



def        lowerCAmelCase_(   lowercase_     :							float						,   lowercase_     :							float						,   lowercase_     :							float							)	->       dict[str, float]:
				if (resistance, reactance, impedance).count(0							) != 1:
								raise ValueError('''One and only one argument must be 0'''							)
				if resistance == 0:
								return {"resistance": sqrt(pow(lowercase_						,   2							) - pow(lowercase_						,   2							)							)}
				elif reactance == 0:
								return {"reactance": sqrt(pow(lowercase_						,   2							) - pow(lowercase_						,   2							)							)}
				elif impedance == 0:
								return {"impedance": sqrt(pow(lowercase_						,   2							) + pow(lowercase_						,   2							)							)}
				else:
								raise ValueError('''Exactly one argument must be 0'''							)


if __name__ == "__main__":
			import doctest

			doctest.testmod()
