diff --git a/Algorithms/algorithms_with_data_structures/LInked List/linked_lists.py b/Algorithms/algorithms_with_data_structures/LInked List/linked_lists.py index f8f5d28..88c099c 100644 --- a/Algorithms/algorithms_with_data_structures/LInked List/linked_lists.py +++ b/Algorithms/algorithms_with_data_structures/LInked List/linked_lists.py @@ -28,8 +28,7 @@ def search(self, x): # SEARCH ELEMENT if temp.data == x: return True temp = temp.next - else: - return False + return False def delete_node(self, data): # NOT WORKS temp = self.head @@ -74,4 +73,4 @@ def delete_tail(self): # DELETE TAIL print("\nDelete Tail ") family.delete_tail() -family.traversal() \ No newline at end of file +family.traversal()