text = "Hello Kelly"
name = text[len("Hello "):]
print(name)

print("---")

s = "Hello World"
for i in range(len(s)):
    print(i, s[i])

print("---")
    
text = "This is pretty crazy!"
newText = ""
for i in range(len(text)):
    if not (text[i] == " "):
        newText = newText + text[i]
print(newText)

print("---")

def isPalindrome(text):
    for i in range(len(text)):
        first = text[i]
        second = text[len(text) - 1 - i]
        print(first, second)
        if first != second:
            return False
    return True

print(isPalindrome("racecar"))
print(isPalindrome("teapot"))

print("---")

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

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

book = """You can copy-paste a book from Project Gutenberg into here!"""