import random
def BubbleSort(num):
n=len(num)
for i in range(0,n):
for j in range(i,n):
if num[i]>=num[j]:
num[i],num[j]=num[j],num[i]
return num
import random
def BubbleSort(num):
n=len(num)
for i in range(0,n):
for j in range(i,n):
if num[i]>=num[j]:
num[i],num[j]=num[j],num[i]
return num