
'''simple docstring'''







def        SCREAMING_SNAKE_CASE__			(     __A = 10    ,       __A = 1_000    ,       __A = True			) ->			int:
	assert (
	    isinstance(__A    ,       __A			)
	    and isinstance(__A    ,       __A			)
	    and isinstance(__A    ,       __A			)
	), "Invalid type of value(s) specified to function!"

	if min_val > max_val:
		raise ValueError('Invalid value for min_val or max_val (min_value < max_value)'			)
	return min_val if option else max_val







def        SCREAMING_SNAKE_CASE__			(     __A    ,       __A			) ->			int:
	return int((number_a + number_a) / 2			)







def        SCREAMING_SNAKE_CASE__			(     __A    ,       __A    ,       __A			) ->			None:
	assert (
	    isinstance(__A    ,       __A			) and isinstance(__A    ,       __A			) and isinstance(__A    ,       __A			)
	), 'argument values must be type of "int"'

	if lower > higher:
		raise ValueError('argument value for lower and higher must be(lower > higher)'			)

	if not lower < to_guess < higher:
		raise ValueError(
		    'guess value must be within the range of lower and higher value'			)

	def answer(__A			) -> str:
		if number > to_guess:
			return "high"
		elif number < to_guess:
			return "low"
		else:
			return "same"

	print('started...'			)

	_snake_case     		=	lower
	_snake_case     		=	higher

	_snake_case     		=	[]

	while True:
		_snake_case     		=	get_avg(__A    ,       __A			)
		last_numbers.append(__A			)

		if answer(__A			) == "low":
			_snake_case     		=	number
		elif answer(__A			) == "high":
			_snake_case     		=	number
		else:
			break

	print(F'guess the number : {last_numbers[-1]}'			)
	print(F'details : {last_numbers!s}'			)







def        SCREAMING_SNAKE_CASE__			(     ) ->			None:
	_snake_case     		=	int(input('Enter lower value : '			).strip()			)
	_snake_case     		=	int(input('Enter high value : '			).strip()			)
	_snake_case     		=	int(input('Enter value to guess : '			).strip()			)
	guess_the_number(__A    ,       __A    ,       __A			)


if __name__ == "__main__":
					main()



'''simple docstring'''







from __future__ import annotations







def        SCREAMING_SNAKE_CASE__			(     __A			) ->			int:
	if not nums:
		return 0
	_snake_case     		=	nums[0]
	_snake_case     		=	0
	for num in nums[1:]:
		_snake_case		,				_snake_case     		=	(
		    max_excluding + num,
		    max(__A    ,       __A			),
		)
	return max(__A    ,       __A			)


if __name__ == "__main__":
					import doctest

					doctest.testmod()

