# stringSplit.py # This program demonstrates the split() function on strings. # Lines that start with '#' are COMMENTS. # They are not interpreted by Python. myString = "TIGER, tiger, burning bright\nIn the forests of the night,\nWhat immortal hand or eye\nCould frame thy fearful symmetry?" print(myString) words = myString.split() print("words =", words) sentences = myString.split("\n") print("sentences =", sentences)