Re: [Tutor] python dictionary and loop

2012-02-28 Thread Prasad, Ramit
>The two sentences I would like to use in the program is the following: >"This is line one\nThis is line two!" so I write: text_message = "This is line >one\nThis is line two!" >The dictionary name and key/value pairs will be: >my_sentences {'This':'This','is':'is','line':'line','one':'two'}   # D

[Tutor] python dictionary and loop

2012-02-28 Thread justin fargus
Hello, I am trying to do the following: Make a program using two sentences of about 8 words (total between the two sentences). I would then like to create a dictionary {} and split the words of each sentence using one sentence as a dictionary key and using the other sentence for the dictionary v