title: Modify parameter values of sections in INI files Python
body: <p>I have a .ini file which I want to modify a particular section.
  So for example,</p>
  
  <pre><code>[Section1]
  Param1: Hello
  Param2: World
  
  [Section2]
  fontsize = 10
  
  [Section3]
  integers = 971 508 1076 561
  </code></pre>
  
  <p>I want to modify the integers in section 3 and replace them with other integers. I have tried:</p>
  
  <pre><code>lis = "971 508 1076 561; 920 543 973 648 ; 831 492 936 544 ; 936 403 988 508"
  config.set('sfr',lis)
  </code></pre>
  
  <p>But I'm getting errors; how can I fix this?</p>
  
  <pre><code>import configparser
  config = configparser.ConfigParser()
  config.read("C:\\Users\\Folder\\example.ini")
  print(config.sections())
  lis = "971 508 1076 561; 920 543 973 648 ; 831 492 936 544 ; 936 403 988 508"
  config.set('sfr',lis)
  </code></pre>