





'''simple docstring'''




from __future__ import annotations

from typing import Any


class 					SCREAMING_SNAKE_CASE       (a__				):
     pass




class 					SCREAMING_SNAKE_CASE       :


     def __init__(		self		,      _UpperCAmelCase):

          '''simple docstring'''






          __A		:					Any						=			data
          __A		:					Node | None						=			None


     def __iter__(		self):

          '''simple docstring'''






          __A		:					Dict						=			self
          __A		:					List[Any]						=			[]
          while node:
               if node in visited:
                    raise ContainsLoopError
               visited.append(_UpperCAmelCase)
               yield node.data
               __A		:					Optional[int]						=			node.next_node


     @property
     def 				SCREAMING_SNAKE_CASE    (		self):

          '''simple docstring'''






          try:
               list(self)
               return False
          except ContainsLoopError:
               return True


if __name__ == "__main__":
  lowercase__       : Tuple         =       Node(1)
  lowercase__       : Optional[Any]         =       Node(2)
  lowercase__       : Union[str, Any]         =       Node(3)
  lowercase__       : Union[str, Any]         =       Node(4)
  print(root_node.has_loop)  # False
  lowercase__       : int         =       root_node.next_node
  print(root_node.has_loop)  # True

  lowercase__       : Optional[int]         =       Node(5)
  lowercase__       : List[str]         =       Node(6)
  lowercase__       : Tuple         =       Node(5)
  lowercase__       : Dict         =       Node(6)
  print(root_node.has_loop)  # False

  lowercase__       : List[Any]         =       Node(1)
  print(root_node.has_loop)  # False






'''simple docstring'''




def 			_lowerCAmelCase     (    __snake_case    :					int					,				__snake_case    :					int					,				__snake_case    :					int     )	->	float:
     __A		:					Dict						=			(num_of_terms / 2) * (2 * first_term + (num_of_terms - 1) * common_diff)
     # formula for sum of series
     return total






def 			_lowerCAmelCase     (    )	->	Union[str, Any]:
     print(sum_of_series(1					,				1					,				10     )     )


if __name__ == "__main__":
  import doctest

  doctest.testmod()