


'''simple docstring'''

from __future__ import annotations

_UpperCAmelCase :       Any										= 1.6021E-19  # units = C

def 							__magic_name__(  lowerCamelCase, lowerCamelCase, lowerCamelCase, ):
						if (conductivity, electron_conc, mobility).count(0) != 1:
												raise ValueError('''You cannot supply more or less than 2 values''')
						elif conductivity < 0:
												raise ValueError('''Conductivity cannot be negative''')
						elif electron_conc < 0:
												raise ValueError('''Electron concentration cannot be negative''')
						elif mobility < 0:
												raise ValueError('''mobility cannot be negative''')
						elif conductivity == 0:
												return (
												    "conductivity",
												    mobility * electron_conc * ELECTRON_CHARGE,
												)
						elif electron_conc == 0:
												return (
												    "electron_conc",
												    conductivity / (mobility * ELECTRON_CHARGE),
												)
						else:
												return (
												    "mobility",
												    conductivity / (electron_conc * ELECTRON_CHARGE),
												)


if __name__ == "__main__":
	import doctest

	doctest.testmod()





"""simple docstring"""




def        lowercase							(		lowerCAmelCase__ :     list			) ->      bool:
		if not isinstance(lowerCAmelCase__    ,					lowerCAmelCase__			):
				raise ValueError('''Input series is not valid, valid series - [2, 4, 6]'''			)
		if len(lowerCAmelCase__			) == 0:
				raise ValueError('''Input list must be a non empty list'''			)
		if len(lowerCAmelCase__			) == 1:
				return True
		__a           =			series[1] - series[0]
		for index in range(len(lowerCAmelCase__			) - 1			):
				if series[index + 1] - series[index] != common_diff:
						return False
		return True

def        lowercase							(		lowerCAmelCase__ :     list			) ->      float:
		if not isinstance(lowerCAmelCase__    ,					lowerCAmelCase__			):
				raise ValueError('''Input series is not valid, valid series - [2, 4, 6]'''			)
		if len(lowerCAmelCase__			) == 0:
				raise ValueError('''Input list must be a non empty list'''			)
		__a           =			0
		for val in series:
				answer += val
		return answer / len(lowerCAmelCase__			)


if __name__ == "__main__":
				import doctest

				doctest.testmod()






