Skip to content

Commit 2364ede

Browse files
authored
Use print() function in both Python 2 and Python 3
1 parent 2e137da commit 2364ede

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

data_structures/stack/stack_using_linked_list.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ def pop(self):
6262
# Test stack functionality
6363
stack.push(e2)
6464
stack.push(e3)
65-
print stack.pop().value
66-
print stack.pop().value
67-
print stack.pop().value
68-
print stack.pop()
65+
print(stack.pop().value)
66+
print(stack.pop().value)
67+
print(stack.pop().value)
68+
print(stack.pop())
6969
stack.push(e4)
70-
print stack.pop().value
70+
print(stack.pop().value)

0 commit comments

Comments
 (0)