# Here is how you put comments in Python
# Comments are human languages for people to read, and not part of the real program

# Put your name here:

# Below are some examples to refresh your memory about defining functions #
def add(x,y):
    ''' If x and y are numbers, returns their sum
        If x and y are strings, returns their concatenation
        If x and y are lists, returns the list with y appended to x'''
    z = x + y
    return z

def selectListItem(myList, index):
    ''' Returns the item at location index of myList '''
    item = myList[index]
    return item

def printMD1000():
    ''' Prints out the first a thousand characters of Moby-Dick, reading from
    a file at a hard-coded location.'''
    # Modify this variable so that its value is the path to the Moby Dick text file
    # on your computer.
    myFile = open('C:\\WinData\\Desktop\\HW2-2\\MobyDick.txt')
    mdString = myFile.read()
    firstThousand = mdString[0:1000]
    print(firstThousand)
    return


# Your work from here #
