diff --git a/data_structures/arrays/dynamic_array.py b/data_structures/arrays/dynamic_array.py index 5c758ad37..356716073 100644 --- a/data_structures/arrays/dynamic_array.py +++ b/data_structures/arrays/dynamic_array.py @@ -78,7 +78,7 @@ class DynamicArray: if index < 0 or index >= self.size: raise IndexError("index out of range") return self.array[index] - + def __setitem__(self, index: int, value: int) -> None: if index < 0 or index >= self.size: raise IndexError("index out of range")