# Silly Strings # Demonstrates string concatenation and repetition # Michael Dawson - 1/11/03 print "You can concatenate two " + "strings with the '+' operator." print "\nThis string " + "may not " + "seem terr" + "ibly impressive. " \ + "But what " + "you don't know," + " is that " + "it's one real" \ + "l" + "y" + " long string, created from the concatenation " \ + "of " + "thirty-two " + "different strings, broken across " \ + "nine lines." + " Now are you" + " impressed?\n\n" + "See, " \ + "even newlines can be embedded into a single string, making" \ + " it look " + "as " + "if " + "it" + "'s " + "got " + "to " \ + "be" + " multiple strings." + " Okay, now this " + "one " \ + "long" + " string " + "is over!" print \ """ If you really like a string, you can repeat it. For example, who doesn't like pie? That's right, nobody. But if you really like it, you should say it like you mean it:""", print "Pie" * 10 print "\nNow that's good eating." raw_input("\n\nPress the enter key to exit.")