




'''simple docstring'''

def __UpperCAmelCase	(   _UpperCAmelCase		:   int						)      ->      int:
			assert (
			    isinstance(_UpperCAmelCase		,				_UpperCAmelCase						) and number_of_steps > 0
			), F'''number_of_steps needs to be positive integer, your input {number_of_steps}'''
			if number_of_steps == 1:
						return 1
			__snake_case		,     __snake_case			=		1, 1
			for _ in range(number_of_steps - 1						):
						__snake_case		,     __snake_case			=		current + previous, current
			return current


if __name__ == "__main__":
						import doctest

						doctest.testmod()






'''simple docstring'''




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






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


if __name__ == "__main__":
  import doctest

  doctest.testmod()
