Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Exercise 1
- quote = """
- “But man is not made for defeat,“ he said.
- “A man can be destroyed but not defeated.”
- - Ernest Hemingway "The Old Man and the Sea"
- """
- print(quote)
- # Exercise 2
- quote = "It was a bright cold day in April, and the clocks were striking thirteen."
- slice = quote.index(',')
- print(quote[:slice])
- # Exercise 3
- lyst = ["The", "fox", "jumped", "over", "the", "fence", "."]
- phrase = ' '.join(lyst[:-1]) + lyst[-1]
- print(phrase)
Add Comment
Please, Sign In to add comment