separate a sentences into dictionary with item and key

Discussion in 'Python' started by idoh, Dec 5, 2011.

  1. idoh

    idoh

    Joined:
    Dec 5, 2011
    Messages:
    1
    hi
    i received a text and i need to separate it into separate words and to craete a dictionary that take the first word and make it into an item and the secend word in the sentence to a key, and so on till the end
    i know how to separate the text to words but how can i make this dictionary??
    plz help me
     
    idoh, Dec 5, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tony
    Replies:
    4
    Views:
    2,186
    Andy De Petter
    Nov 27, 2003
  2. Guest
    Replies:
    2
    Views:
    5,664
    wwwtar
    Nov 2, 2006
  3. basi
    Replies:
    35
    Views:
    721
    Adam i Agnieszka Gasiorowski FNORD
    Dec 3, 2005
  4. mike b.
    Replies:
    3
    Views:
    184
    James Edward Gray II
    Jul 30, 2007
  5. Sandman

    splitting paragraph into sentences

    Sandman, Aug 2, 2004, in forum: Perl Misc
    Replies:
    5
    Views:
    458
    Anno Siegel
    Aug 2, 2004
Loading...

Share This Page