From dc584f16585b00df02301de122e4b4970ce9f505 Mon Sep 17 00:00:00 2001 From: S-Sanyal Date: Wed, 3 Oct 2018 20:13:34 +0530 Subject: [PATCH] Made the code Python 3 compatible --- data_structures/Stacks/Stock-Span-Problem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_structures/Stacks/Stock-Span-Problem.py b/data_structures/Stacks/Stock-Span-Problem.py index 658ac3cbf..ecef7ecc6 100644 --- a/data_structures/Stacks/Stock-Span-Problem.py +++ b/data_structures/Stacks/Stock-Span-Problem.py @@ -37,7 +37,7 @@ def calculateSpan(price, S): # A utility function to print elements of array def printArray(arr, n): for i in range(0,n): - print arr[i], + print (arr[i]), # Driver program to test above function