Assignment1.py
def openFile(fileName):
    '''
    Opens a text file from the same directory as the .py and returns a list.

    Para:
            fileName: String 
    
    Returns:
            fList: List
    '''
    with open(fileName) as f:
        fList = f.readlines()
    return fList

    Opens a text file from the same directory as the .py and returns a list.

    Para:
            fileName: String 
    
    Returns:
            fList: List
    
Opens a text file from the same directory as the .py and returns a list.
Para:
fileName: String
Opens a text file from the same directory as the . py and returns a list . Para : fileName : String
def openFile(fileName):
    with open(fileName) as f:
        fList = f.readlines()
    return fList
def openFile ( fileName ) : with open ( fileName ) as f : fList = f . readlines ( ) return fList
Opens a text file from the same directory as the .py and returns a list.
Opens a text file from the same directory as the . py and returns a list .
'''
    Opens a text file from the same directory as the .py and returns a list.

    Para:
            fileName: String 
    
    Returns:
            fList: List
    '''
None
fList
fileName