title: I am trying to input and update a dictionary without using a loop
body: <p>I want a feature where i can input new values into a dictionary
  to store and update so i can use it as part of code. Thanks</p>
  <pre><code>name_of_students = {'Sam':92,  'james':78, 'ray':67, 'jane':60, 'julie':89, 'mel':50} 
  #add new variable into dict
  new_students = {}
  new_students = input(&quot;Enter the name of the student/score: &quot;)
  name_of_students = name_of_students.update(new_students)
  print(name_of_students)
  </code></pre>
  <p>input <strong>mark:90</strong></p>
  <p>error: <code>raceback (most recent call last): File &quot;/Users/sonter/Documents/CODE X/grading-program-/.py&quot;, line 10, in &lt;module&gt; name_of_students = name_of_students.update(new_students) ValueError: dictionary update sequence element #0 has length 1; 2 is required</code></p>