title: how to write a python code to get input and make a list of numbers from 1 to 100 and divide in to 5 parts and see the input is in witch part
body: <p>I want to write a code that gets input from the user and the make a list of numbers from 1 to 100 and divide it into 5 sectors and check if the input is in which sector.</p>
  <p>for example: the input is 23 and the computer will see that the number is in which sector of the list that we made and tell the user that the number is in which sector.
  in are example the output is: 2
  here is the code:</p>
  <pre><code>input = input(&quot;please give a number from 1 to 100: &quot;)
  for i in range(0, 100, 20):
      if i == input[0]:
          print(&quot;1&quot;)
      if i == input[1]:
          print(&quot;2&quot;)
  print(input)
  </code></pre>
  <p>note: tis is not the right code.</p>