Skip to content

Commit 80cc0bf

Browse files
updated heap sort
1 parent 498d772 commit 80cc0bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/sort/Heap_sort.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def heap_sort(arr):
4141

4242
# Taking Elements to be Sorted
4343
data = [int(input())
44-
for i in range(int(input("Enter elements to be sorted : ")))]
44+
for index in range(int(input("Enter elements to be sorted : ")))]
4545
# Sending element to get sorted
4646
heap_sort(data)
4747
# Priting Elements after Getting Sorted

0 commit comments

Comments
 (0)