def getInput():
    with open('input.txt') as file:
        content = file.readlines()

    # remove unnecessary \n
    content = [c.replace('\n', '') for c in content if c not in '\n']

    title = content[0]
    text = content[-(len(content) - 1):]

    return {'title': title, 'text': ' '.join(text)}

# #####################
dataset/ETHPy150Open DataTeaser/textteaser/textteaser/main.py/getInput/operator `!=` -> `not in`