title: ValueError: dict contains fields not in fieldnames: '1'
body: <p>I am coding a game and a leader board for it. I have the high score and it is stored in a csv file, if someone beats it, the new high score overwrites the old high score however I am getting an error which I don't understand.</p>
  
  <p>Here is my relevant code:</p>
  
  <pre><code>with open ("C:\\Users\\sophie\\Documents\\Sophie\\Homework\\Year 11\\Computer Science\\High_score.csv", 'w') as csvfile:
          writecsv=csv.writer(csvfile)
          writer.writerow(str(NumberOfGuesses))
  </code></pre>
  
  <p>Here is the error I get:</p>
  
  <pre><code>Traceback (most recent call last):
      File "C:/Users/sophie/Documents/Sophie/Homework/Year 11/Computer 
  Science/Summer homework.py", line 124, in &lt;module&gt;
      writer.writerow(str(NumberOfGuesses))
      File "C:\Python34\lib\csv.py", line 153, in writerow
      return self.writer.writerow(self._dict_to_list(rowdict))
      File "C:\Python34\lib\csv.py", line 149, in _dict_to_list+ ", ".join([repr(x) for x in wrong_fields]))
      ValueError: dict contains fields not in fieldnames: '1'
  </code></pre>
  
  <p>At the start I read the csv file and set the variable high_score to the high score in the file.</p>
  
  <pre><code>high_score = ()
      import csv
      with open
  ("C:\\Users\\sophie\\Documents\\Sophie\\Homework\\Year11\\ComputerScience\\Highscore.csv") as csvfile:
              readcsv=csv.reader(csvfile)
              for row in readcsv:
                  high_score=(row)
  </code></pre>
  
  <p>Then the user plays the game and if they have beaten the high score, I want it to overwrite the high score in that folder and replace it with the new one.</p>
  
  <p>This is shown here </p>
  
  <pre><code>if NumberOfGuesses &lt;= (int_high_score):#This shows the high score changes value if that score is higher.
  
      with open ("C:\\Users\\sophie\\Documents\\Sophie\\Homework\\Year 11\\Computer Science\\High_score.csv", 'w') as csvfile:
          writecsv=csv.writer(csvfile)
          writer.writerow(str(NumberOfGuesses))
  </code></pre>