Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Code for Bogosort

Python

You'll need a load.py file saved in the same directory as the bogosort.py file, with the following contents:

# You call this function with the path to a file you want to load.
# It loads the file contents, converts each line from a string to
# an integer, and returns them all as a Python list.
def load_numbers(file_name):
  numbers = []
  with open(file_nam...