solParser.py
def extractComments(code):
    """ Function which returns a list of commented lines from a list of code lines"""
    commentBank = []
    itemsList = ["//", "#", "/*", "*/", "*"]
    for item in itemsList:
        for line in code:
            if item in line:
                commentBank.append(line)
    return commentBank
 Function which returns a list of commented lines from a list of code lines
Function which returns a list of commented lines from a list of code lines
Function which returns a list of commented lines from a list of code lines
def extractComments(code):
    commentBank = []
    itemsList = ["//", "#", "/*", "*/", "*"]
    for item in itemsList:
        for line in code:
            if item in line:
                commentBank.append(line)
    return commentBank
def extractComments ( code ) : commentBank = [ ] itemsList = [ "//" , "#" , "/*" , "*/" , "*" ] for item in itemsList : for line in code : if item in line : commentBank . append ( line ) return commentBank
Function which returns a list of commented lines from a list of code lines
Function which returns a list of commented lines from a list of code lines
""" Function which returns a list of commented lines from a list of code lines"""
code