Moving letters in python
<p>I'm currently attempting the <a href="http://www.codecademy.com/courses/python-beginner-2W5v7/0/1" rel="nofollow">this problem</a> on codeacademy. The problem is I don't know how to move letters in a string. </p>

<p>The attempt I made was this</p>

<pre><code>oword = raw_input('enter a english word')
if len(oword) &gt; 0 and oword.isalpha:
    step_one_new_word = (oword + oword[0]) - oword[0]
</code></pre>

<p>(couldn't tab so I did 4 spaces)</p>

<p>I was thinking that python had the strings in arrays. I'm not sure if that is the problem or if the "-" is. I need to get rid the that first letter. However I also need to move it to the end first.</p>

<p>I did find <a href="http://stackoverflow.com/questions/10841868/move-n-characters-from-front-of-string-to-the-end">this answer</a> and it seemed like it worked except I don't understand how. As you know in programming it's not like school. School they just teach you this is what you do. You do it on the test and your fine. Programming you need to know how and why it works or you'll never do anything.</p>

<p>Of course then I went and found <a href="http://stackoverflow.com/questions/663171/is-there-a-way-to-substring-a-string-in-python">this</a> to explain substr but it still doesn't make sense.</p>

<p>He says this:</p>

<pre><code>&gt;&gt;&gt; x = "Hello World!"
&gt;&gt;&gt; x[2:]
'llo World!'
&gt;&gt;&gt; x[:2]
'He'
&gt;&gt;&gt; x[:-2]
'Hello Worl'
&gt;&gt;&gt; x[-2:]
'd!'
</code></pre>

<ol>
<li><p>Does the side of the number determine if it returns everything but that part or just that part?</p></li>
<li><p>How do you delete these parts?</p></li>
<li><p>How do you select something inside the the string instead of just on one side? I am not sure but my guess it is like this [:1,2]. For example we'll use the same "Hello World!" string. This would take either "el" or "ll".</p></li>
</ol>
