





from __future__ import annotations

from typing import Any





class UpperCAmelCase_							:


  def __init__(       self   ,__snake_case   ,__snake_case   ):  # noqa: A002



       """simple docstring"""





       A_					      =					item
       A_					      =					next





class UpperCAmelCase_							:


  def __init__(       self   ):



       """simple docstring"""





       A_					      =					None
       A_					      =					0


  def 	__UpperCAmelCase    (       self   ,__snake_case   ):



       """simple docstring"""





       A_					      =					Node(__snake_case   ,self.head   )
       self.size += 1


  def 	__UpperCAmelCase    (       self   ):



       """simple docstring"""





       if self.head is None:
            return None
       else:
            A_					      =					self.head.item
            A_					      =					self.head.next
            self.size -= 1
            return item


  def 	__UpperCAmelCase    (       self   ):



       """simple docstring"""





       return self.head is None


  def __str__(       self   ):



       """simple docstring"""





       if self.is_empty():
            return ""
       else:
            A_					      =					self.head
            A_					      =					''''''
            A_					      =					[]
            while iterate:
                 item_list.append(str(iterate.item   )   )
                 A_					      =					iterate.next

            A_					      =					''' --> '''.join(__snake_case   )

            return item_str




  def __len__(       self   ):



       """simple docstring"""





       return self.size






from __future__ import annotations

def     UpperCAmelCase_						(						_UpperCAmelCase       :list[int | float]							)  ->							int | float:
     '''simple docstring'''


     if len(_UpperCAmelCase							) == 0:
          raise ValueError('''find_max() arg is an empty sequence'''							)
     A_					      =					nums[0]
     for x in nums:
          if x > max_num:
               A_					      =					x
     return max_num


if __name__ == "__main__":
      import doctest

      doctest.testmod(verbose=True)



