title: How can I modify my code to give the input in dict datatype?
body: <p>My aim:
  There is a record of n students.Each record contains student's name and their percent in math,physics,chemistry.The marks can be floating values.You are required to save the record in a dictionary data type.Student's name is the key.Marks store in a list is the value.The user enters a student's name.Output the average percentage marks obtained by that student.
  This is my code:</p>
  
  <pre><code>n = int(input("Enter total number of students:"))
  
  student_marks = {}
  
  for x in range(n):
      name, *line = input().split()
      scores = list(map(float, line))
      student_marks[name] = scores
  student_name = input("Enter name of the student whose average you want:")
  
  print("{0:.2f}".format(round(sum(student_marks[student_name]) / len(student_marks[student_name]), 2)))
  
  </code></pre>
  
  <p>I am actually getting this output:</p>
  
  <pre><code>Enter total number of students:3
  Krishna 67 68 69
  Arjun 70 98 63
  Malika 52 56 60
  Enter name of the student whose average you want:Malika
  56.00
  </code></pre>
  
  <p>But I want my sample input to be in dict form containing marks as list i.e.,</p>
  
  <pre><code>Sample input: {'Krishna':[67,68,69],
                 'Arjun':[70,98,63],
                 'Malika':[52,56,60]}
  </code></pre>
  
  <p>How can I modify my code to give the input like this? without using import asl?
  Please do help.Thanks in advance.</p>