# -*- coding: utf-8 -*-
"""Generate random story using trigrams."""
import io
import string


def read_file():
    """Open and read file input."""
    f = io.open('sherlock_small.txt', 'r')
    lines = ''.join(f.readlines())
    print(lines)
    return lines


def strip_punct(text):
    """Do stuff."""
    # strip punct from
    # print(type(text))
    for c in string.punctuation:
        text.replace(c, ' ')


text = read_file()
strip_punct(text)

# -*- coding: utf-8 -*-
"""Generate random story using trigrams."""
import io
import string


def read_file():
    """Open and read file input."""
    f = io.open('sherlock_small.txt', 'r')
    lines = ''.join(f.readlines())
    # print(lines)
    return lines


def strip_punct(text):
    """Do stuff."""
    # strip punct from
    # print(type(text))
    for c in string.punctuation:
        text = text.replace(c, ' ')
    return text


text = read_file()
print(strip_punct(text))

Add return statement to strip_punct
Add return statement to strip_punct
