Update Quick_Sort.py
diff --git a/Quick_Sort.py b/Quick_Sort.py
index 8de118212b..13426c6cd9 100644
--- a/Quick_Sort.py
+++ b/Quick_Sort.py
@@ -48,5 +48,5 @@ def quickSort(arr, low, high):
 n = len(arr)
 quickSort(arr, 0, n - 1)
 print("Sorted array is:")
-for i in range(n):
-    print("%d" % arr[i]),
+for i in arr:
+    print("%d" % i),

iterate through list object through iterator instead of index