input: Write a function to delete a specified node from a linked list. The function should be named deleteNode and should be part of the LinkedList class. If the node is found and deleted, the function should return True; otherwise, it should return False. If the linked list is empty, the function should return False.
  assert deleteNode(Node(2))==True
  assert deleteNode(Node(5))==True
  assert deleteNode(Node(8))==False
  assert deleteNode(Node(1))==False
  assert deleteNode(None)==False
output: def deleteNode(self, node):
      if not self.head:
          return False
      if self.head.data == node.data:
          self.head = self.head.next
          return True
      current = self.head
      while current.next:
          if current.next.data == node.data:
              current.next = current.next.next
              return True
          current = current.next
      return False