<filename>1c. beginner_path_3_How to Think Like a Computer Scientist Learning with Python 3/thinkcs-python3-solutions/Chapter 8/E7 & E8.py
def reverse(text):
    reversedText = ""
    for i in range(len(text) - 1, -1, -1):
        reversedText += text[i]
    return reversedText


def mirror(text):
    mirroredText = text + reverse(text)
    return mirroredText


print(mirror("Python"))

<filename>1c. beginner_path_3_How to Think Like a Computer Scientist Learning with Python 3/thinkcs-python3-solutions/Chapter 8/E7 & E8.py
def reverse(text):
    reversedText = ""
    for i in range(len(text) - 1, -1, -1):
        reversedText += text[i]
    return reversedText


def mirror(text):
    mirroredText = text + reverse(text)
    return mirroredText


print(mirror("Python"))
