title: Print specific range of numbers in a list
body: <p>I'm trying to teach my self programming. I am currently studying python.
  My resource is MIT OCW</p>
  <p>I've just learnt lists and would like to print out the 5th to 9th number in a range (0,10)</p>
  <p>The code I've written so far is</p>
  <pre><code>new_list = range (0,10)
  for i in range (0,10) 
      print &quot;numbers are&quot;, new_list [5:9]
  </code></pre>
  <p>I'm getting a Syntax error when I run the code in shell. Error is pointed to the brackets when I use both square and normal brackets.</p>
  <p>Anyone can assist me get the desired output?</p>
  <p>Also, is that the right use of the &quot;for&quot; function?</p>