s = "Happy Wednesday!"
for i in range(len(s)):
    print(i, s[i])

###
    
message = "Let's Go Tartans!"
result = ""
for pos in range(len(message)):
    char = message[pos]
    if char != " ": # do nothing
        result = result + char
print(result)    

###

def getPunctuationFrequency(text, punc):
    puncCount = 0
    for i in range(len(text)):
        if text[i] == punc:
            puncCount = puncCount + 1
    return puncCount / len(text)

print(getPunctuationFrequency("That's so exciting!! Good for you man!", "!")) # 0.079

book = """
add book text here
"""

print(getPunctuationFrequency(book, "!"))
print(getPunctuationFrequency(book, "?"))
print(getPunctuationFrequency(book, "-"))