First Jupyter Notebook
My first Jupyter notebook on my blog!
var = "World!"
print("Hello " + var)
for i in range(5):
print("Hello " + var)
from random import shuffle as sh
def sorted(arr):
length = len(arr)
for i in range(0, length-1):
if (arr[i] > arr[i+1] ):
return False
return True
def shuffle(arr):
sh(arr)
def Bogosort(arr):
while not sorted(arr):
shuffle(arr)
return arr
array = [23,10,49,9]
print(Bogosort(array))