added push

This commit is contained in:
2026-03-15 16:28:26 -04:00
parent bb366686c1
commit e25318b336

View File

@@ -38,7 +38,7 @@ class Stack[T]:
Returns:
None
'''
pass
self._data.insert_head(item)
def pop(self) -> T:
''' removes the topmost element from the stack and returns that element