File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ def push(self, item):
9
9
# this function pop will take out the top element from the stack
10
10
def pop (self ):
11
11
return self .items .pop ()
12
- # to check if the stack if empy without this we can't reverse the given string.
12
+ # to check if the stack if empty without this we can't reverse the given string.
13
13
def is_empty (self ):
14
14
return self .items == []
15
15
# this function is optional it will just return to top of the stack when called
@@ -19,7 +19,7 @@ def peek(self):
19
19
20
20
def _reverse_ (Stack , input_str_ ):
21
21
# loop through the string then push it into the stack then
22
- # pop the item fro tne stack append to an empty string variable
22
+ # pop the item from the stack append to an empty string variable
23
23
24
24
for i in range (len (input_str_ )):
25
25
You can’t perform that action at this time.
0 commit comments