# Author:  James Tam
# Version: November 18, 2021
# Learning objectives:
# * String splitting (default and selected character)

SEPERATOR = "."

def start():
    aString = "A sentence. Another, short, sentence. Yet another short, short, sentence"
    print("Original string=%s" %(aString))
    sentence1, sentence2, sentence3 = aString.split(SEPERATOR)
    print("Sentence1=%s-" %(sentence1))
    print("Sentence2=%s-" %(sentence2))
    print("Sentence3=%s-" %(sentence3))
    print("-")

    #What's returned is actually a tuple!
    aTuple = sentence3.split()
    print(aTuple)
    print("-")

    for aWord in aTuple:
        print("%s" %(aWord))

start()
