Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. s = "I am happy to join with you today in what will go down in history as the greatest demonstration for freedom in the history of our nation. Five score years ago, a great American, in whose symbolic shadow we stand today, signed the Emancipation Proclamation. This momentous decree came as a great beacon light of hope to millions of Negro slaves who had been seared in the flames of withering injustice. It came as a joyous daybreak to end the long night of their captivity. But one hundred years later, the Negro still is not free. One hundred years later, the life of the Negro is still sadly crippled by the manacles of segregation and the chains of discrimination. One hundred years later, the Negro lives on a lonely island of poverty in the midst of a vast ocean of material prosperity. One hundred years later, the Negro is still languishing in the corners of American society and finds himself an exile in his own land. So we have come here today to dramatize a shameful condition."
  2. s = s.replace('.','')
  3. s
  4. s = s.replace(',','')
  5. s2 = s.split()
  6. s2
  7. L1 = {}
  8. for i in s2:
  9. if i not in L1:
  10. L1[i] = 1
  11. else:
  12. L1[i] += 1
  13. print(len(L1))
  14.  
  15. max(L1, key = L1.get)
  16. print(L1.get("the"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement