title: How to solve Students marks dashboard kinds of problems - Can't we use simple code in python to solve this problem..?
body: <p>Consider the marks list of class students given in two lists</p>
  
  <pre><code>Students = ['student1','student2','student3','student4','student5','student6','student7','student8','student9','student10']
  Marks = [45, 78, 12, 14, 48, 43, 45, 98, 35, 80]
  </code></pre>
  
  <p>from the above two lists the Student[0] got Marks[0], Student[1] got Marks[1] and so on
  Who got marks between >25th percentile &lt;75th percentile, in the increasing order of marks </p>
  
  <p>My question - 
  Can't we use simple code in python to solve this problem..?</p>
  
  <p>I have written code till this. To find the numbers >25 and &lt;75 but unable to make it in ascending order. Sort() is not working and sorted is also not working. Please help how to extract the particular array values and assign to another array to solve this problem.</p>
  
  <pre><code>for i in range(0,10):
      if Marks[i]&gt;25 and Marks[i]&lt;75: 
          print(Students[i],Marks[i])
          print(i)
  </code></pre>