daily pastebin goal
54%
SHARE
TWEET

Untitled

a guest Dec 15th, 2018 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Exercise 1
  2. quote = """
  3. “But man is not made for defeat,“ he said.
  4. “A man can be destroyed but not defeated.”
  5. - Ernest Hemingway "The Old Man and the Sea"
  6. """
  7. print(quote)
  8.  
  9. # Exercise 2
  10. quote = "It was a bright cold day in April, and the clocks were striking thirteen."
  11. slice = quote.index(',')
  12. print(quote[:slice])
  13.  
  14. # Exercise 3
  15. lyst = ["The", "fox", "jumped", "over", "the", "fence", "."]
  16. phrase = ' '.join(lyst[:-1]) + lyst[-1]
  17. print(phrase)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top