title: How do I get data from dictionary in python?
body: <pre><code>a= int(input(&quot;Enter number of students:&quot;))
  i=1
  n = []
  t = []
  p = []
  avg = []
  
  while i&lt;=a:
      total=0
      name = input(&quot;Enter name of student:&quot;)
      n.append(name)
      subjects = int(input(&quot;Enter count of subjects:&quot;))
      i=i+1
      j=1
      while j&lt;=subjects:
          s = int(input(&quot;Enter marks:&quot;))
          total = total + s
          j=j+1
          percentage = (total/(subjects*100))*100
          average = total/subjects
      t.append(total)
      p.append(percentage)
      avg.append(avg)
      
      
      result = dict(zip(n,p))
      
      
      print(&quot;Total marks of&quot;, name, &quot;is&quot;, total)
  
  print(&quot;The students:&quot;,n)
  print(&quot;The total of students:&quot;,total)
  print(&quot;The average of students:&quot;,avg)
  print(&quot;The percentage of students:&quot;, percentage)
  print(&quot;The result of students:&quot;, result)   
  </code></pre>
  <p>i want to store the data which I get from this code and later on display specific data like if I search for student's name, I'll get his marks and average. how do I do this?</p>