Skip to content

Commit 9620e59

Browse files
Merge pull request #1309 from akash-ks-coder/master
change the variables
2 parents 42d2138 + e5b0537 commit 9620e59

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sorting Algorithims/Bubble_sort.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
def bubble_sort(nums):
2-
for i in range(len(nums)):
3-
for j in range(len(nums)-1):
1+
def bubble_sort(Lists):
2+
for i in range(len(Lists)):
3+
for j in range(len(Lists)-1):
44
# We check whether the adjecent number is greater or not
5-
if nums[j]>nums[j+1]:
6-
nums[j], nums[j+1] = nums[j+1], nums[j]
5+
if Lists[j]>Lists[j+1]:
6+
Lists[j], Lists[j+1] = Lists[j+1], Lists[j]
77

88
#Lets the user enter values of an array and verify by himself/herself
99
array = []

0 commit comments

Comments
 (0)