<div><span>Hello,</span></div><div><span><br></span></div><div><div style>I am trying to do the following:</div><div style><br></div><div style>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 value.  I would then like to use a loop (while or for) that will write out a file that has the dictionary key and dictionary value to it.  How can I go about doing this? I&#39;ve noticed with Python there is more than one way to do most things. I would like the simplest so that I can practice over and over again on my own until I understand it. Thanks in advance</div>
<br class="Apple-interchange-newline"></div><div><span><br></span></div><div><span>I forgot to add in my first email that I am using Windows Vista 64x and running Python 3.2.2.</span></div>
<div><span><br></span></div><div><span>The two sentences I would like to use in the program is the following:</span></div><div><span><br></span></div><div><span>&quot;This is line one\nThis is line two!&quot; so I write: </span><span>text_message = &quot;This is line one\nThis is line two!&quot;</span></div>

<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">The dictionary name and key/value pairs will be:</font></div><div><font color="#222222" face="arial, sans-serif"><br>

</font></div><div><font color="#222222" face="arial, sans-serif">my_sentences {&#39;This&#39;:&#39;This&#39;,&#39;is&#39;:&#39;is&#39;,&#39;line&#39;:&#39;line&#39;,&#39;one&#39;:&#39;two&#39;}   # Does this code split the words of each sentence so that the words in sentence 1 are keys, and the words in sentence 2 are values? </font></div>

<div><font color="#222222" face="arial, sans-serif"><br></font></div>