title: Create a dictionary that contains student name, roll no and marks obtained
body: <p>I did a program to create a dictionary that contains student name, roll no and marks obtained.When I execute it to form multiple dictionaries instead of one.
  This is the code:</p>
  <pre class="lang-py prettyprint-override"><code>def student(x,y,z):
     result = {}
     result[roll_no] = [std_name, marks]
     print(result)
  
  
  n = int(input(&quot;Enter No of Students:&quot;))
  for i in range(n):
  
     roll_no = int(input(&quot;Roll No: &quot;))
     std_name = input(&quot;Student Name: &quot;)
     marks = int(input(&quot;Marks: &quot;))
     student(std_name, roll_no, marks)
  </code></pre>