text: from util import *
  
  def find_middle(head):
      if not head:
          return head
      slow = head
      fast = head.next
      while fast:
          fast = fast.next
          if fast:
              fast = fast.next
              slow = slow.next
      return slow
  
  if __name__ == "__main__":
      sample = [1,2,3,4,5,6,7,8,9]
      head = create_linked_list(sample)
      middle = find_middle(head)
      print(middle.value)
  